[Progress Communities] [Progress OpenEdge ABL] Forum Post: How to stop a HttpRequest

  • Thread starter Thread starter Arno van der Ende
  • Start date Start date
Status
Not open for further replies.
A

Arno van der Ende

Guest
We have a webservice which is not always online, or can only be accessed when a VPN connection is setup. Is it possible to test the connection, before executing the real POST? Now th POST takes about 40 seconds before an error is thrown. Using SetRequestTimeout and STOP-AFTER does not seem to help. Code: oHttpRequest = RequestBuilder:Post(this-object:URI, oRequestBody) :ContentType(this-object:ContentType) :AddHeader("Connection":u, "Keep-Alive":u) :AcceptXml() :Request. oHttpResponse = ClientBuilder:Build() :SetRequestTimeout(10) :Client :Execute(oHttpRequest).

Continue reading...
 
Status
Not open for further replies.
Back
Top