The HTTPRequest class / com.HTTPRequest methods |
Returns (asynchronously) the response produced by one of request methods.
getAsyncResponse() RETURNING result com.HTTPResponse
If available, the method returns a com.HTTPResponse object corresponding to the response that was produced by a call to one of the request methods: doRequest(), doTextRequest(), doXmlRequest(), doFormEncodedRequest(), or beginXmlRequest() and endXmlRequest().
The method returns NULL if the response was not yet received.
If a previous call returned NULL, a new call will return the expected response if it has already arrived, or NULL again if the response was still not received.
Does not stop the program flow when waiting for a response. The user can working on other tasks while waiting.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.