- Super Bronze, 10000 points or more
Community Spotlight Award,
Member's Choice, May 2015
I've been experimenting with a HTTP contact today; but it's not working quite as I would expect.
Basically I take a HTTP contact in, and build a response which I then send using a 'send HTTP response' step. My understanding was that as soon as this step is executed the response would be sent back to the browser/web site making the HTTP call.
What actually seems to happen is that when this step is hit, the browser is still awaiting a response. When the script reaches the 'end' step, it actually sends the response... I have things happening in my script after the response should be sent, so don't want the browser to block until the script ends.
Oddly, if I fire up Wireshark I see the data in a packet sent when I hit the 'send http response' step; and again at the end of the script. The first packet isn't interpreted as text/xml, but the second one is....
Anyone seen this sort of thing?