Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Excel VBA, XMTHTTP & Cookies
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Mark Simon, post: 9223315"] Thanks Alex I had a look at WinHTTP.WinHTTPRequest.5.1, and find that it does indeed send my cookies. However, I can't get that to send my post data! Here is a revised test procedure which successfully sends the cookies but not the data: Sub test() Dim w As New WinHttp.WinHttpRequest Dim t As String, qs As String qs = "this=that&more=less" w.Open "post", "[URL]http://www.comparity.net/perl/form.pl?a=b[/URL]", False w.setRequestHeader "Cookie", "one=foo" w.setRequestHeader "Cookie", "two=bar" w.send qs t = w.responseText WriteTextFile "c:\test.html", t Debug.Print w.Status Debug.Print t End Sub This is frustrating. Any suggestions? Thanks, Mark [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Excel VBA, XMTHTTP & Cookies
Top