Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XMLHTTP and POST and keepalive timeouts

From: "Clive George" <clive@------.-----.--.-->
To: NULL
Date: 2/5/2007 9:27:00 PM

"Brian Staff" <brianstaff AT [NoSpam]cox DOT net> wrote in message 
news:%23GKtLi6RHHA.4384@T......
>> var httpObj = new ActiveXObject('MSXML2.XMLHTTP.3.0');
>> httpObj.open( "POST", url, false, uid, pwd );
>> httpObj.setRequestHeader( "Content-Type", "text/plain" );
>> httpObj.send( postData );
>
> Try playing with this:
>
> httpObj.setRequestHeader("Connection", "close");  // or "open"

Unfortunately that just makes the connection you're currently making close 
afterwards, rather than closing the current one. I don't know when the POSTs 
will occur - there will typically be several GETs beforehand, and I've no 
way of telling which one will be the one immediately before the POST.

"Connection: open" doesn't make xmlhttp open a new connection 
unfortunately - pity, cos that would have been quite a nice solution.

cheers,
clive 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent