Hi all
I need a help in asynchronous http request using Lotus Script. I have a LS agent that calls an url using http GET method. The problem here is i will not get the response immediately. So my code works fine unless there is a response for the request. If there is no response then the code stops its execution untill it gets the response.
So i want the agent to execute other lines of code without waiting for the response. This we can do in javascript using onreadystatechange method. How can be acheive this using LS. I am pasting part of my code here for reference.
Set objHttp = CreateObject(“Microsoft.XMLHTTP”)
Call objHttp.open(“GET”, url, False)
Call objHttp.setRequestHeader(“Content-type”, “application/x-www-form-urlencoded”)
objHttp.send (agent stops here unless there is a response)
Any help on this is appreciated.