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

Upload Excel xlsm file to php script using VBA

I would like to upload an Excel xlsm file to a php script from VBA. I found the following code: Dim WinHttpReq As Object Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1") Dim strURL As String Dim StrFileName As String Dim FormFields As…
Albertus
  • 911
  • 2
  • 10
  • 19
2
votes
1 answer

BigCommerce API. How to connect using WInHTTP

How can I connect to BigCommerce API using WinHTTP?
Karl Irvin
  • 105
  • 5
2
votes
2 answers

VBA WinHttp no mapping character

Here is the source of a function I use get HTML code for further proccessing: Public Function DownloadTextFile(url As String) As String Dim oHTTP As WinHttp.WinHttpRequest Set oHTTP = New WinHttp.WinHttpRequest oHTTP.Open Method:="GET",…
user2127981
  • 51
  • 2
  • 4
2
votes
2 answers

Specify which Network Card/Connection Winhttp Must Use

I have an application in C# that utilizes Winhttp to make web requests. Is there a way to specify which network card WinHTTP must utilize for its connections?
webly
  • 327
  • 2
  • 7
  • 18
2
votes
1 answer

python win32com how to set winhttp option value

from win32com.client import Dispatch winhttp = Dispatch('winhttp.winhttprequest.5.1') print winhttp.Option(6) #True winhttp.Option(6) = False #SyntaxError <----------------how to set Option(6) to false print…
haokeyy
  • 23
  • 3
2
votes
0 answers

c++ google drive api Uploads untitled file

I insert the following paremeters using WinHTTP. The files get uploaded successfully but with the title untitled file. POST /upload/drive/v2/files?access_token=918230812390812038389 HTTP/1.1 Host: www.googleapis.com Content-Type:…
mister
  • 3,303
  • 10
  • 31
  • 48
2
votes
2 answers

How to parse line by line WinHTTP response: UTF-8 encoded CSV?

As the next step for my happily solved problem (Not understanding why WinHTTP does NOT authenticate certain HTTPS resource) I need to prettily parse obtained CSV. At the moment I use the following solution: If HTTPReq.Status = 200 Then If…
Peter L.
  • 7,276
  • 5
  • 34
  • 53
2
votes
3 answers

Not understanding why WinHTTP does NOT authenticate certain HTTPS resource

I'd be extremely grateful for any kind of help that may help me resolving the problem. From Excel VBA code I need to download & parse CSV file from HTTPS site https://redmine.itransition.com/. I try to use WinHTTP to get the file. However, I can't…
Peter L.
  • 7,276
  • 5
  • 34
  • 53
2
votes
1 answer

How to reuse the same HTTPS connection for many put requests within a session?

To send files to server, I do a HTTPS put request in Windows, which looks like this: hSession = WinHttpOpen( L"Agent/1.0",.. hConnect = WinHttpConnect(hSession,.. hRequest = WinHttpOpenRequest( hConnect,…
Anton K
  • 4,658
  • 2
  • 47
  • 60
2
votes
1 answer

Find the size of retrieved binary data with WinHttp.WinHttpRequest

I've recently realized that URLDownloadToFile uses the IE proxy setting. So I'm looking for an alternative and found WinHttp.WinHttpRequest may work. It seems the ResponseBody property contains the fetched data and I need to write it to a file. The…
NbdNnm
  • 528
  • 2
  • 11
2
votes
0 answers

WinHTTP Send Request returns error 12007 (server name cannot be resolved)

I've got a couple of users who are getting errors when they attempt to activate one of my programs and the description of the error code being returned is 'The server name cannot be resolved.' I've got WinHTTP trying to auto-detect proxy settings,…
CariElf
  • 204
  • 2
  • 6
2
votes
1 answer

obtaining proxy from PAC proxy requiring authentication

I am attempting to use WinHttpGetProxyForUrl where the PAC file specified by WINHTTP_AUTOPROXY_OPTIONS.lpszAutoConfigUrl requires HTTP basic authentication to access. Is there some way to cause the regular authentication dialog to popup or to supply…
Bevan Collins
  • 1,531
  • 16
  • 25
1
vote
1 answer

Which SDK exactly to install to use WinHTTP in Visual Studio 2003, XP 2003, SP3?

My OS is XP 2003, SP 3. We have MS VC++ code (not .NET), in Visual Studio 2003. (This is not the time for us to upgrade to a later Visual Studio version.) I want to use WinHTTP API's (winhttp.h) in my code. What SDK exactly do I need to install?…
1
vote
1 answer

Is WinHTTP downloading null bytes or am I copying the results buffer incorrectly?

I recently ported a fully working WinInet program to WinHTTP. Here's a function I wrote to wrap an entire GET request in to a single line of code: bool Get(Url url, std::vector& data, ProgressCallbackFunction progressCallback = nullptr)…
jvstech
  • 844
  • 1
  • 9
  • 28
1
vote
0 answers

Soap-server responds with error 12030 after requests over HTTPS

My Delphi 10.4 application uses a HTTPRIO-component to communicates with SOAP REST Server over HTTPS. It is installed on more then 100 PC's, and it works fine almost everywhere. However, I now have 2 clients that get the following error: "Error…