Questions tagged [winhttp]

Windows HTTP Services (WinHTTP) is an HTTP client application library provided by Microsoft as part of Windows to send the requests through the HTTP protocol to other HTTP servers.

See Windows HTTP Services page for the WinHTTP documentation.

See also this seminal MSDN article detailing the use of the library's asynchronous API in C++.

This tag should be used for questions relating specifically to the WinHTTP library.

417 questions
0
votes
2 answers

google Drive via Resumable upload Request fails returning error code 12156.if any one know about this please reply?

On windows-10 while uploading file to google Drive via Resumable upload Request fails. WinhttpReceiveResponce() Fails with return code 12156.
0
votes
2 answers

VBA winhttp equivalent for local file

So I currently have a sub which copies documents stored on our intranet and saves them to our shared drive. Now, I would like to do the exact same thing, but with a file stored locally on a users computer, not on the intranet. How could I do…
mrlemmer11
  • 347
  • 2
  • 15
0
votes
1 answer

How can I verify a self-signed certificate?

I am currently writing a desktop app which will need to communicate with PHP scripts on my remote server via https(with a self-signed certificate). The server-client communication code is still in the planning stages, however because I haven't yet…
Dalton Sandbothe
  • 501
  • 2
  • 7
  • 16
0
votes
0 answers

retrieve multiple cookies from winhttp header

I want to retrieve the cookies from winhttpheader.The problem is that header is in this form: Header-Contents Transfer-Encoding: chunked Server: nginx Set-Cookie: name=xyz; Path=/ ; secure; httponly Set-Cookie:…
Abhi
  • 1
  • 3
0
votes
1 answer

Downloading binary file using WinHttp.WinHttpRequest.5.1 - content is binary gibberish

I'm trying to download an MS Excel file (binary). I even get the correct response headers (see both images (httpfox and vbscript) attached). When trying to save objWinHttp.ResponseBody using the following function (found in many posts referring to…
0
votes
1 answer

Using GetHttpConnection in MFC

I have a rest Server written in java and I am trying to call a GET method from an MFC client. The server URL is http://localhost:8080/com.test.simpleServlet/api/customers and this returns me the proper value when I run through the crome postman…
S_R
  • 493
  • 1
  • 9
  • 22
0
votes
1 answer

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

I am trying to automate downloading of xml file from a url. Even after multiple attempts I couldn't think of possible solution to this and wonder if anyone could help me by just looking at the output and response header, url being sensitive. Using…
Santosh
  • 12,175
  • 4
  • 41
  • 72
0
votes
0 answers

WinHTTP decompression function?

Presently I am using winhttp api in c++ to get data from a server. The server can support various compression formats. So presently I want to use winhttp to get the compressed format (eg gzip) and decompress it. Is it possible to decompress the data…
AC John
  • 41
  • 4
0
votes
2 answers

Vba Upload Text File

I'm trying to upload a plain text file to a classic asp page and getting an error.

Microsoft VBScript runtime error '800a01a8'

Object required: 'fields(...)' Html…

luckasx
  • 359
  • 1
  • 6
  • 20
0
votes
2 answers

WinHttp TLS connection in classic asp

I'm trying to send payment data to SagePay and, as they are turning off SSL, it needs to be sent using TLS. The code I have is as follows: set httpRequest = Server.CreateObject("WinHttp.WinHttprequest.5.1") httpRequest.Open "POST",…
IanTrem
  • 25
  • 1
  • 7
0
votes
0 answers

WinHttp, get proxy settings from Chrome

I'm developping a "web-service" (http/https encapsulation). I developped my client with WinHttp.lib and my server with HttpServer Api. My client system has proxy to go out of its system. Thanks to WinHttpGetIEProxyConfigForCurrentUser, i get proxy…
YannaY
  • 105
  • 2
  • 9
0
votes
1 answer

WinHttpWriteData seems to be "flooding" server

I'm using WinHttpSendRequest/WinHttpWriteData to upload a large (54Mb) file to our server, sending it in 4Kb lumps to give user feedback. This has been working well, as far as I know, until recently. Now, when I try it, the upload goes very quickly…
0
votes
1 answer

How does one create an http post call with Excel VBA?

I am able to do GET's with ease by calling the following code: Dim theURL As String, theRequest As Object theURL = "http://localhost/myapp/encrypt.jsp?str=" & _ encodeStr(range("I10").Value) & "&user=myUser&pass=myPass" Set theRequest =…
Rick Parker
  • 15
  • 2
  • 6
0
votes
1 answer

Retrieve time-stamp of HTTP file using WinHttp function

How to get the time stamp of a file, that can be downloaded from HTTP server, using HTTP protocol? I am particularly interested in WinHttp functions, but any HTTP reference will do. There is a time-stamp field in response-header, but that refers the…
Ajay
  • 18,086
  • 12
  • 59
  • 105
0
votes
1 answer

How to send HTML form to website for login, and download web page in c++ (using WinHTTP API)

Hello! I am trying to log in to website and download an authorized page. Currently, the website does not require any authentication schema (I found out this from response headers). Name and password are just verified by php script (I think…
user3099493