|
-
Jul 17th, 2008, 01:20 PM
#1
Thread Starter
New Member
Using Microsoft.XMLHTTP to set headers
Hi,
I'm trying to read a web page, and set my own HTTP_ header var.
Dim objHTTP As Object
Set objHTTP = CreateObject("Microsoft.XMLHTTP")
objHTTP.Open "GET", "http://www.xxxxxx.com/e.php", bolGetAsAsync
objHTTP.setRequestHeader "X-HTTP_MYVAR", "this is me", False
objHTTP.send
Debug.print objHTTP.responseText
The script e.php just outputs the array $_SERVER.
However, I dont seem to be getting my HTTP_MYVAR variable in $_SERVER
Anyone know what I am doing wrong?
Thanks,
Rob.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|