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
0 answers

How to resolve conflicts between winhttp.lib and wininet.lib

I am writing a C++ program using C++Builder from Embarcadero. My application uses wininet.lib to do basic internet connections. I have some new c++ code I need to integrate into my application that use winhttp.lib to access the internet. This causes…
homebase
  • 713
  • 1
  • 6
  • 20
0
votes
1 answer

How to get the direct link from url that have a session ID by vbscript?

I'm trying to get the direct link from url, so i use this function to provide me the header location and for this example it works fine : Option Explicit Const Title = "Get Header Location" Const WHR_EnableRedirects = 6 Dim URL,Result URL =…
Hackoo
  • 18,337
  • 3
  • 40
  • 70
0
votes
0 answers

How to not write all the stream via WinHttpWriteData when the server don't read the full content of the request?

To send a big file via winHttp Typically we do a loop like the one below (from delphi source code) : while LRequest.FSourceStream.Position < LRequest.FSourceStream.Size do begin ToRead := LRequest.FSourceStream.Size -…
zeus
  • 12,173
  • 9
  • 63
  • 184
0
votes
0 answers

Sending http request with unsupported HTTP version using winhttp

I'm aware that WinHttpOpenRequest specifies the version of the HTTP that the application should be using to communicate with the server. I want to see how the server behaves if I send a request with an unsupported HTTP version. But the function…
KESHAV K
  • 63
  • 10
0
votes
1 answer

Replacing HTML entities in HTTP source

I use WinHTTP to GET resource from a URL which returns the source with HTML entities. But I require to make the text readable by replacing them with normal special characters. Would there be an option in WinHTTP or what would be the fastest way to…
user963241
  • 6,758
  • 19
  • 65
  • 93
0
votes
1 answer

MS Access: Way to maintain persistent session across multiple Form Events?

Hopefully this is a simple question, though the solution may not be. In MS Access, is it possible to instantiate a VBA class in the application or database scope? What I want to do is persist a WinHttp instance with the same lifetime as the…
tlum
  • 913
  • 3
  • 13
  • 30
0
votes
0 answers

GET Method does not work unless I manually put cookies

Hello I am facing a weird error I struggle to find solution for. I have created a code which allows me to fetch data from internet page. MyRequest.Open "GET", URL MyRequest.SetRequestHeader "Host", URlHost MyRequest.SetRequestHeader "User-Agent",…
KamilG
  • 71
  • 7
0
votes
1 answer

Get the size of public key using WinHttpQueryOption

I need to find the Public key specified in certificate details. I have used WinHttpQuery option and provided WINHTTP_OPTION_SERVER_CERT_CONTEXT as the option flag. bRet =…
Keshav
  • 47
  • 1
  • 7
0
votes
1 answer

C++ Download file from internet with Winhttp

Possible Duplicate: How to download a file with WinHTTP in C/C++ ? Hello! I have a simple question. How can you download a file from specific http page with the help of Winhttp in C++? Note: I want to use this function for a console application.
Ionut Ungureanu
  • 380
  • 3
  • 9
  • 25
0
votes
0 answers

downloading zip file from buffer to zip file in C++

I am trying to download a file from internet in C++. Hold the downloaded contents into HInternet Instance. Also I populated the header information of HInternet instance. That is looks like Header contents: HTTP/1.1 200 OK Cache-Control:…
CrazyCoder
  • 772
  • 5
  • 11
  • 31
0
votes
1 answer

Winhttp and p12 certificate

I am writing a client program in VB6 which will interface to a server over HTTP. The company who runs the server provided me with a certificate file called SomeCertificate.p12. My program is running on Windows XP. This is the operating system the…
yaronkl
  • 510
  • 2
  • 5
  • 18
0
votes
1 answer

WinHTTP autoproxy not working

After running the autoproxy example, my request is not going through my proxy. If I call WinHttpOpen with WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, instead of WINHTTP_ACCESS_TYPE_NO_PROXY, it works if I don't do a WinHttpSetOption: if(…
exploiter
  • 11
  • 1
0
votes
1 answer

TFS 2017 server required firewall settings for Build agent

I have TFS 2017 on Windows Server 2016 Standard. I am now setting up Build agent on Windows 10 pro using PAT token authentication. (having "Agent Pools (read, manage)", "Agent Pools (read)", "Build (read"), "Code (read)", "Build (read and execute)",…
Andreas Reiff
  • 7,961
  • 10
  • 50
  • 104
0
votes
1 answer

Calling winhttp through luajit

I'm trying to do a simple GET request using the winhttp library using luajit and seem to be stuck. I am creating the request, but when I try to receive the response I get nothing. The code I have can be seen below local ffi = require("ffi") local…
Danny
  • 7,368
  • 8
  • 46
  • 70
0
votes
1 answer

Delphi System.net.HTTPClient: Error reading data (12002) The operation timed out

I using System.net.HTTPClient on Berlin Update 2 for download big files (>500 MB) from AWS S3 with this unit: unit AcHTTPClient; interface uses System.Net.URLClient, System.net.HTTPClient; type TAcHTTPProgress = procedure(const Sender:…
ar099968
  • 6,963
  • 12
  • 64
  • 127