
October 26th, 2002, 02:01 AM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
Try using the Webbrowser control from Microsoft Internet Controls to do your stuff. That's what I usually use, with code something like this:
Code:
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
ReDim bPostData(Len(sPost))
bPost = StrConv(sData, vbFromUnicode)
WebBrowser.Navigate sURL, 0, vbEmpty, bPostData, sHeaders
(or)
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.
|