Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet Transfer Control: Cannot get "POST" to work.

Status
Not open for further replies.

Edd

Programmer
Jun 22, 2000
10
0
0
US
I am trying to "POST" some XML stuff to a webserver, using the Internet Transfer control. When running the Execute command, with "POST"... the StateChanged event never occurs.

Here is a portion of the code that I have:
Code:
   Inet1.Protocol = icDefault
   Inet1.AccessType = icUseDefault
   Inet1.RequestTimeout = 10
   
   strUrl = "[URL unfurl="true"]https://microsoft.com"[/URL]

   Inet1.Execute strUrl, "POST", "XML=" & _
      Replace(xmlDoc.xml, " ", "+"), _
      "Content-Type:application/x-[URL unfurl="true"]www-form-urlencoded"[/URL]
BUT, when I use the OpenUrl method instead of Execute, the StateChanged event does occur. I need to be able to use the Execute method so that I can get the resulting data asynchronously with the GetChunk method.

Any ideas as to why this isn't working for me?
I'm using VB6.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top