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
3
votes
2 answers

How to use WinHTTP library for kerberos (windows integrated) authentication

There is a server running on linux box which understand kerberos, which also process SPNEGO and understands only kerberos but it does not understand NTLM The firefox and IE logins and access the web page succesfully using kerberos tokens without…
kalyan
  • 3,076
  • 1
  • 22
  • 29
3
votes
1 answer

WinHttpRequest gzip response parsing

I'm using MSXML2.XMLHTTP60 for http surfing in my VBA project. The issue is MSXML2.XMLHTTP60 is limited to four concurrent requests. I'm trying to use WinHttp.WinHttpRequest.5.1 instead, and there is another issue. MSXML2.XMLHTTP60 parses gzip…
3
votes
1 answer

WinHTTP Error Invalid URL

How do you specify a URL with path for example: http://stackoverflow.com/questions. The following works but not with the URL specified above in example. LPCWSTR useragent = L"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12)…
user963241
  • 6,758
  • 19
  • 65
  • 93
3
votes
2 answers

Use WinHTTP in Visual Studio 6.0

I am maintaining a legacy app written in Visual Studio C++ 6.0. I need to replace portion of the code with calls to WinHTTP API. I have created small demo in Visual Studio 6.0 test project so I can see how would things go. When I build the code I…
AlwaysLearningNewStuff
  • 2,939
  • 3
  • 31
  • 84
3
votes
1 answer

WinHttp.WinHttpRequest in .NET

Is there a built-in .NET class that can replace or work like WinHttp.WinHttpRequest? Thanks!
Leon Tayson
  • 4,741
  • 7
  • 37
  • 36
3
votes
1 answer

Google server is responding with an outdated html file

I'm learning socket programming using C++ , so as a project I thought of a software that downloads all image search results for a certain search(eg."cats"), I'm using WinHttp and the exemple in here and giving it : the server name…
MKAdmin
  • 41
  • 4
3
votes
2 answers

POST Request in WinHttp c++

I'm trying to make a POST request in c++ with the WinHTTP api Click to the Microsoft Guide, the problem is that the example that is available in the microsoft webpage is a "GET" request so I came up with this code searching on the internet: First we…
Jose
  • 129
  • 2
  • 4
  • 9
3
votes
1 answer

PayPal Sandbox Blocks WinHTTP.WinHTTPRequest.5.1

paypalfunctions.asp and expresscheckout.asp files I'm hoping to find help, and if not help then a developer for hire who is proficient in Classic ASP and PayPal and can help me resolve this. We have a Windows 2008 R2 Server running Classic ASP. We…
Steve
  • 75
  • 1
  • 9
3
votes
0 answers

WinHTTP background thread count

I'm using WinHTTP in order to create client http request. although it's working good most of the time, I have a bit of confusion regarding the thread pool Windows opens for async winhttp connections. As written in MSDN about WinHttpSetOption…
David Haim
  • 25,446
  • 3
  • 44
  • 78
3
votes
0 answers

lua - how to get lua_State in winhttp callback function(WINHTTP_STATUS_CALLBACK)?

I already successful implement a sync way, but how can I do it in async way? Because there is no way to add parameter to winhttp callback. WINHTTP_STATUS_CALLBACK theCallback = WinHttpSetStatusCallback ( hSession, …
min
  • 953
  • 1
  • 11
  • 23
3
votes
2 answers

WinHttp errors on option 9 / Win2008 / Classic ASP

The Server I am connecting to requires TLS 1.1. My attempts fail. I am on a Windows Server 2008 R2 Standard SP1 64bit machine using Classic ASP. Here is my code: const WinHttpRequestOption_SecureProtocols = 9 const SecureProtocol_TLS1_1 =…
user3593080
  • 31
  • 1
  • 4
3
votes
1 answer

Certificate not valid or incorrect "WinHttp.WinHttpRequest.5.1"

I am running a macro that calls a function to retrieve information from a server. I am using "WinHttp.WinHttpRequest.5.1" to connect. The macro works fine for 95% of my request return a valid result. But the other 5% caused the following error:…
Ihidan
  • 558
  • 1
  • 7
  • 25
3
votes
0 answers

WinHTTP error 12175 after days and huge amount of queries

I am using the Windows WinHTTP library to perform http & https queries, and am sometimes getting a WinHTTP 12175 error, usually after several days of operation (sometimes weeks), hundred of thousandths to millions of queries. When that happens, the…
Eric Grange
  • 5,931
  • 1
  • 39
  • 61
3
votes
2 answers

Asynchronous WebSockets in Winhttp Windows 8

I want just to add WebSockets to my app that uses WinHTTP in async mode. When I need a WebSocket I call the following. Before sending request: WinHttpSetOption(context->hRequest, WINHTTP_OPTION_UPGRADE_TO_WEB_SOCKET, NULL, 0); In…
Bigconnect
  • 61
  • 4
3
votes
1 answer

vb6 winhhtp: Error Occurred in the Secure Channel Support

I wrote a VB6 program which uses winhttp.dll to send and receive messages to/from a remote server. It has been working fine from various operating systems: Windows 2000, WinXP, Win7, Win8. Recently the server provider informed me that they will…
yaronkl
  • 510
  • 2
  • 5
  • 18