October 26th, 2002, 02:01 AM
Try using the Webbrowser control from Microsoft Internet Controls to do your stuff. That's what I usually use, with code something like this:
Dim bPostData() As Byte
Dim sHeaders As String
sPost = "foo=1&bar=test&quux=42" ' Post data
sHeaders = "Content-Type: application/x-www-form-urlencoded" & vbCrlf ' Add extra headers as needed
bPost = StrConv(sData, vbFromUnicode)
WebBrowser.Navigate sURL, 0, vbEmpty, bPostData, sHeaders
WebBrowser.Navigate2 sURL, 0, vbEmpty, bPostData, sHeaders
If you want to use a GET method instead of POST, then simply remove the extra params from the call and use WebBrowser.Navigate sURL or WebBrowser.Navigate2 sURL instead. I just put the above code together off the top of my head and haven't checked it to see if it actually works, but the syntax should be pretty close.
Hope this helps!
Last edited by Scorpions4ever : October 26th, 2002 at 02:05 AM.