Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XMLHTTP and POST and keepalive timeouts [Thread Next] Re: XMLHTTP and POST and keepalive timeoutsTo: 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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
