Forum Discussion

EngoTom's avatar
EngoTom
Visitor
16 years ago

Async HTTP Request

I need to call a URL async and I don't really care about the result as it's just logging Google Analytics entries for my client app.

Can someone show me the quickest way to do this?

THX

BTW this was a great example on checking if a URL is valid but I don't think it's an async call
viewtopic.php?f=34&t=30774&p=187477#p187477

2 Replies

  • This should do it...

    http = CreateObject("roUrlTransfer")
    http.SetUrl(url)
    http.AsyncGetToString()
  • Be careful to keep the http (roUrlTransfer) object in scope (perhaps an m. pseudo global) to insure that the request goes out. Otherwise, you may have a race condition between the http object being destroyed before the request is sent.

    --Kevin