Hi, everyone. I´m new at vbscript and need some help. I have a function using WinHttp.WinHttpRequest.5.1. I need to see what i´m sending with my headers. For example: call gXMLHTTP.setRequestHeader("Connection","keep-alive") I need to see if "Connection" value is really "keep-alive". How can i do this? I try with MsgBox Connection, but don´t work.
That XMLHTTP object does not seem to expose a "getRequestHeader", so you can't ask for a preview. That leaves sending the request to a (small, perhaps local) webserver you control, or to a server which will kindly return your request headers as a HTML page. :-) http://scooterlabs.com/echo ... which google came back with when I threw a quick "HTTP echo" at it. :-)
Just make your own testKeepAlive.asp page containing only: