web-services,rest,http,vb6,winhttp
Here's the solution : Sub SendAsynchMessage() Dim objHTTP As New WinHttp.WinHttpRequest Dim doc As New MSXML2.DOMDocument Dim root As MSXML2.IXMLDOMNode Dim success As Boolean Dim str As String On Error GoTo ErrorHandler success = doc.Load(App.Path & "\flow.xml") Set root = doc.selectSingleNode("/root") str = CStr(root.childNodes.Item(0).xml) URL = "http://ipAddress:8081/messageAsynch" objHTTP.Open "POST", url,...
WinHTTP does not promise synchronous "same thread" callbacks in synchronous mode. On the contrary, MSDN states the opposite: The callback function must be threadsafe and reentrant because it can be called on another thread for a separate request, and reentered on the same thread for the current request. It must...
It's AVG ...! Disabling AVG gives normal performance for the upload ... now it's just a matter of finding out which part(s) are getting in the way....
The line: printf("%s", ppszOutBuffer); I believe is the reason here....
See the Content-Encoding: gzip? You need to decompress the body using gzip, or use a client library that will do it for you. Just as a side note, though, if the server sent you a gzipped response when you didn't send Accept-Encoding: gzip, there's something wrong with it....