how to set http timeout using asp?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
This is my asp code
<pre class="lang-xml prettyprint prettyprinted" style="
Code:
<span class="pun <%<span class="pln 
http <span class="pun =<span class="pln  server<span class="pun .<span class="pln createobject<span class="pun (<span class="str "microsoft.xmlhttp"<span class="pun )<span class="pln 
http<span class="pun .<span class="pln open <span class="str "post"<span class="pun ,<span class="pln  servleturl<span class="pun ,<span class="pln  <span class="kwd false<span class="pln 
http<span class="pun .<span class="pln setrequestheader <span class="str "content-type"<span class="pun ,<span class="pln  <span class="str "application/x-www-form-urlencoded"<span class="pln 
http<span class="pun .<span class="pln setrequestheader <span class="str "accept-encoding"<span class="pun ,<span class="pln  <span class="str "gzip, deflate"<span class="pln 
http<span class="pun .<span class="pln send  <span class="str "request="<span class="pln  <span class="pun &<span class="pln  sxml
http_response <span class="pun =<span class="pln  http<span class="pun .<span class="pln responsetext
%>
[/code]
i need to make TimeOut when the response not come in 15 seconds how?


View the full article
 
Back
Top