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.

393 questions
0
votes
1 answer

How to ignore utf-8 encoding errors when using WinHttp under WSH?

I'm using the following script to get the content of a URL: WinHTTP = WScript.CreateObject('WinHttp.WinHttpRequest.5.1') ; WinHTTP.Open( 'GET', theUrl ) ; WinHTTP.Send() ; var content = WinHTTP.ResponseText ; which works fine except when the…
GetFree
  • 34,030
  • 17
  • 70
  • 101
0
votes
2 answers

WinHTTP Connect

I am trying to have WinHttp make a “CONNECT” calls (as opposed to a “GET” or “POST”) that looks as follows: CONNECT www.etrade.com:443 HTTP/1.0 Host: www.etrade.com However, winhttp always enforces a path after the “CONNECT” verb as follows (at the…
webly
  • 327
  • 2
  • 7
  • 18
0
votes
1 answer

What is the ASP notation for the value of WINHTTP_ACCESS_TYPE_NO_PROXY?

I've searched the internet all morning. I just want to know the value and how to notate it in asp classic. I think it's 1 in decimal notation. WINHTTP_ACCESS_TYPE_NO_PROXY = ?
Doug Chamberlain
  • 10,801
  • 9
  • 46
  • 90
0
votes
1 answer

Mantis BT export request via "WinHttp.WinHttpRequest.5.1"

My boss asked me to export the corp's Mantis bugs database to Excel, but he can't give me access to the SQL Server, and the process has to be automated. The ONLY thing I can use is Excel (no ODBC, no manual export). So I managed to do this : Dim…
user155847
0
votes
1 answer

How to retrieve cookies for a specific site and path in winhttp

I would like to retrieve the cookies stored in the winhttp session cache based upon a specific host and path that I am about to send a request to. I want to retrieve those cookies before I send the request, so I don't have the request handle yet,…
Benjamin
  • 519
  • 2
  • 6
  • 15
0
votes
1 answer

How Does WinHttpCrackurl Work

The MSDN documentation on WinHttpCrackurl makes a point of saying it runs "synchronously". But, could someone provide some authoritative documentation that says WinHttpCrackurl does or does not attempt a network connection? I've searched…
Les
  • 9,279
  • 4
  • 33
  • 57
0
votes
1 answer

In the windows API, is there a generic method which will give you the appropriate HTTP proxy for a URL?

I'm writing an application intended for distribution around the world. I recently discovered a method of WinHTTP: http://msdn.microsoft.com/en-us/library/aa384097(VS.85).aspx This can decode any Netscape-style PAC file (in Javascript) and tell me…
Salim Fadhley
  • 18,674
  • 18
  • 72
  • 100
0
votes
2 answers

Ways to speed up termination of socket WinHttp APIs using C++ for Windows

I have a Windows service application written in C++/MFC that establishes an HTTP connection via Windows sockets. It employs WinHttp* APIs to do all the socket related operations. It all works great, except when someone tries to stop/uninstall that…
ahmd0
  • 14,832
  • 29
  • 117
  • 218
-1
votes
1 answer

Is it possible to write a c++ client using WinHttp APIs to receive PUSH notification from an HTTP Server?

I have created a sample chat application using .NET Framework WebAPI project using the reference: https://www.c-sharpcorner.com/article/push-notification-in-web-application-using-web-api-and-pushcontentstream) enter link description here I tried to…
denz
  • 9
  • 1
-1
votes
1 answer

Reason behind WinHttpOpenRequest default url encoding behaviour

Part of my application relies on a HTTP client which is based on the Win32 API. Each HTTP query is initiated with calls to WinHttpOpenRequest like std::wstring method = L"POST"; std::wstring path = L"/foo/bar%baz"; WinHttpOpenRequest( …
epsilon
  • 2,604
  • 12
  • 21
-1
votes
1 answer

Process hangs on WinHttpReceiveResponse()

My process hangs with the below callstack at WinHttpRecieveResponse(). This behaviour is inconsistent sometime it works for the same data and same use case. But most of the time it hangs likes below. I have checked using the WireShark that response…
-1
votes
1 answer

Unhandled exception at 0x00000000772CA267 (ntdll.dll) in *****.exe : 0xC0000005: Access violation writing location 0xFFFFFCA800000000

I am getting this exception Unhandled exception at 0x00000000772CA267 (ntdll.dll) in ******.exe: 0xC0000005: Access violation writing location 0xFFFFFCA800000000. When I look into callstack I don't see my code in the stack but the…
-1
votes
1 answer

how could i use a string variable in WinHttpOpenRequest?

I write a proggram that makes HTTP requests by using winhttp of windows ,and I wanted to do that the user could fill some things like what site and path. so how could i use a string to fill those forms? for example hRequest =…
mosh
  • 1
-1
votes
1 answer

Scraping Google Finance using WINHTTP

I am trying to scrape the company name in google finance into my excel file. However, it doesn't seem to work. Any help would be gladly appreciated. Sub get_name() Dim oHtml As HTMLDocument Dim oElement As Object Dim i As Integer Set…
-1
votes
1 answer

Web Scraping through Excel VBA

I need to fetch company addresses(cim) from site http://www.ceginfo.hu/ Example Company Name: AB-KONTÍR Szolgáltató Bt. I know how to do it using WinHttp.WinHttpRequest object and FireBug. But I am not able to decide to which URL I should send…
Tejas
  • 2,052
  • 13
  • 40
  • 67
1 2 3
26
27