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
1 answer

WinHTTP over HTTP/2 with multiplexing

I'm wondering if it is possible with the Windows API WinHTTP to use HTTP/2 multiplexing (multiple requests over one TCP connection). If so, is there example code how to archieve this? I found this message from Microsoft…
nwrobel
  • 1
  • 1
0
votes
1 answer

receiving 12030 at WinHttpReceiveResponse

I just got into using SSL with winhttp. I am receiving ERROR_WINHTTPCONNECTION_ERROR in MSDN the docs it says, The connection with the server has been reset or terminated, or an incompatible SSL protocol was encountered. For example, WinHTTP version…
Ahmed Can Unbay
  • 2,694
  • 2
  • 16
  • 33
0
votes
1 answer

Calling InternetCrackUrl from Powershell

I am an idiot for this... Does anybody has examples on how to call WinINet InternetCrackUrl from powershell? The API ref is here. I want a very robust way to parse URLs, I have tried some regex samples out there and none seem to do the job,
0
votes
1 answer

Impersonated HTTP authentication working only on localhost

I'm dealing with supporting Windows authentication on a ASP.NET Web API and the client is C++. I have taken this sample code from Microsoft #include #include #include #pragma comment(lib, "winhttp.lib") DWORD…
0
votes
0 answers

What part of the Set-Cookie should be sent to the server?

I have this http request: > Header contents: > HTTP/1.1 200 OK > Cache-Control: max-age=0, no-store > Date: Wed, 17 Jul 2019 08:55:45 GMT > Content-Length: 22049 > Content-Type: text/html; charset=utf-8 > Expires: Wed, 17…
2K World
  • 21
  • 7
0
votes
1 answer

Wininet/Winhttp Changes in Windows 7

Is there any official documentation on what was changed for Wininet (and/or WinHTTP) on Windows 7?
GeorgeU
  • 7,819
  • 8
  • 26
  • 38
0
votes
0 answers

WinHttpOpen w/ WINHTTP_ACCESS_TYPE_NAMED_PROXY returns error 87

I call WinHttpOpen(nullptr, WINHTTP_ACCESS_TYPE_NAMED_PROXY, L"http://127.0.0.1:80/", WINHTTP_NO_PROXY_BYPASS, WINHTTP_FLAG_ASYNC), and get a return value of 0 + last error of 87. Calling WinHttpOpen(nullptr, WINHTTP_ACCESS_TYPE_NO_PROXY,…
Uri Raz
  • 435
  • 1
  • 3
  • 15
0
votes
0 answers

Problem authenticating WinHttp connection to remote server after impersonation

I have a security problem. I don’t know if it is WinHttp or if it is Kerberos or Windows Security. We have a desktop version of our application and web version that runs as a service. They share many, many DLLs where much of the functionality lies.…
Joseph Willcoxson
  • 5,853
  • 1
  • 15
  • 29
0
votes
0 answers

Will async calls made through wininet complete successfully if we are waiting for response in endless while loop?

I have an application which uses Wininet on the main thread to make both sync and async calls. A single root internet handle is opened with flag - INTERNET_FLAG_ASYNC. This handle is used for all calls.To implement sync network calls, we simply wait…
0
votes
1 answer

Using WinHTTP to transfer data without headers

I am trying to incorporate some SSL/TLS into some Windows Sockets. I can't find any good examples so right now I am looking into the WinHTTP API. I am wondering if this can be used like traditional socket send() and recv() functionality? I found an…
Halloween
  • 388
  • 3
  • 15
0
votes
0 answers

How to connect to expressVPN?

Here is what I've tried so far: using WINHTTP_OPTION_PROXY_PASSWORD & WINHTTP_OPTION_PROXY_PASSWORD using WinHttpSetCredentials using plain text like so L"https://username:password@norway-ubuntu-l2tp.expressprovider.com" Here is my full code with…
AnArrayOfFunctions
  • 3,452
  • 2
  • 29
  • 66
0
votes
1 answer

Problem with Winhttp SSL under Windows 10

I'm currently trying to implement a soap client under Windows in C++. Due to some technical requirements, the http and communication layer have been implemented using the Winhttp API. Everything seems to work ok but, as soon as TLS 1.1 or 1.2 are…
0
votes
1 answer

Connection with the server was terminated abnormally

I have a django-python server with a VBA front end connecting using winhttp and REST API. So, in this case the requests sent and received are controlled by us and per-determined. A while ago when our servers were updated to TLS from SSL, we had a…
Moe
  • 991
  • 2
  • 10
  • 24
0
votes
0 answers

Delphi IWinHTTPRequest SetRequestHeader

I am trying to send custom header values in a HTTP POST but the site I am posting to tells me they are just receiving nulls. I have tried setting the values OSName, OSVersion, ProductName, ProductVersion as a String, WideString and OLEVariant, but…
user3396999
  • 3
  • 1
  • 3
0
votes
2 answers

Is there any example of HttpSendHttpResponse usage of the HTTP_SEND_RESPONSE_FLAG_OPAQUE flag (needed for WebSocket support)?

I am using HttpSendHttpResponse() with the HTTP_SEND_RESPONSE_FLAG_OPAQUE flag, as proposed by Microsoft (only with 101 response status and response headers prepared using the WebSocketBeginServerHandshake() function), but I receive…
AndyX
  • 81
  • 7