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:
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.
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]
Any ideas as to why this isn't working for me?
I'm using VB6.