url = "http://someurl.com"
request = CreateObject("roUrlTransfer")
if(debug)
'We always need to set a port, or the request won't get made.
port = CreateObject("roMessagePort")
request.SetMessagePort(port)
endif
request.SetUrl(url)
request.AddHeader("Content-Type", "application/xml")
outstanding = request.AsyncPostFromString(dataRequest)
if(debug = true)
msg = wait(50000, port)
endif
If 'debug' is false, I don't seem to be making the request. If debug is true, the request registers on the other side. Is it just not setting the port that is hosing me, or is it not setting the port and not waiting for the message that's hosing me?
Normally I don't care about the response, as I'm making API requests to omniture... long as it works once, I don't care if something breaks in the field as long as it doesn't crash the app. But I turned 'debug' off, and I look to see no omniture data for like the last week (oops).