Menu
  • HOME
  • TAGS

Invoking a RESTFul WebService using WinHttp

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,...

Async callback call for a sync WinHTTP request

winapi,asynchronous,winhttp

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...

WinHttpWriteData seems to be “flooding” server

delphi,winhttp

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....

Prevent winHTTP From Writing to STDOUT

c++,stdout,winhttp

The line: printf("%s", ppszOutBuffer); I believe is the reason here....

Using GetHttpConnection in MFC

c++,mfc,jersey,wininet,winhttp

It was a very silly mistake. The code should be CString strServerName = L"http://localhost"; ............. pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET, L"/com.test.simpleServlet/api/customers"); ...

download xml file from url using winhttp in excel - CHARSET=UTF-8

php,excel-vba,utf-8,winhttp

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....