perfectxml.com
 Basic Search  Advanced Search   
Topics Resources Free Library Software XML News About Us
home » focus » msxml » ask a question » past questions & answers Thursday, 11 October 2007
 
NEWS
MSXML 4.0 SP2 now available!

 
MSXML
Basics
DOM
SAX
XPath
XSLT
Schemas
SOM
HTTP Access
.NET
Data Islands
Ask a Question
   Past Q&As
C++ Samples
DLL/Version Info
Reference Guide
Books
KB Articles
   HOW TO
   SAMPLE
   INFO
   BUG/PRB
   FIX
   Misc.
MSXML Tips
   August 2002
   September 2002
MSXML Tools

Microsoft XML Core Services


Go back to list of previously asked questions and answers

Question: We use MSXML XMLHTTP and ServerXMLHTTP from VBScript to send a request to remote server. The request goes through proxy server (ISA Server). If a request takes a long time (more than 120 seconds), then the proxy server times out the connection. Is there a way to programmatically keep the connection alive?
Asked By: Guest
Viewed: 2766
Answer: You can use MSXML XMLHTTP/ServerXMLHTTP to send dummy "HEAD" requests on a different thread to the server in order to keep the connection alive.

Example VBScript code:

Option Explicit

Dim objXMLHTTP
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP.4.0")
objXMLHTTP.open "HEAD", "http://www.yourserver.com/pageurl", False
objXMLHTTP.send

'wscript.echo objXMLHTTP.getAllResponseHeaders


Go back to list of previously asked questions and answers
  Contact Us | E-mail Us | Site Guide | About PerfectXML | Advertise ©2004 perfectxml.com. All rights reserved. | Privacy