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

POST files to SharePoint using python and winhttprequest

I am having problems trying to POST a file to Sharepoint using WinHTTPRequest and Python. From the MS Docs, it has the sample code: url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files/Add(url='file name',…
Haowen Liu
  • 11
  • 1
1
vote
0 answers

How to emulate below HTTPS headers through WinHttp.WinHttpRequest.5.1

There is one java sun.Applet embeded inside a HTTPS webpage. After entering valid profile and password, I can access to that applet, request data of the Http headers captured by Fiddler when my login to that applet is showed in the image…
Jim
  • 35
  • 1
  • 8
1
vote
0 answers

Using winhttpjs batch script in Windows, how do I upload a file?

I need to upload a file from a windows computer to a server on which I have full control. But since I don't have access to that computer, a technician will copy a minimal batch script with a schedule. So I chose WINHTTPJS BATCH. I already used it to…
KeitelDOG
  • 4,750
  • 4
  • 18
  • 33
1
vote
2 answers

How to safely prevent status callback function from being called in Wininet?

We are using WinInet inside a DLL to make asynchronous network calls. When the application exits, we remove the registered callback functions for pending requests by using InetSetStatusCallback(connect_handle, NULL);. However, occasionally the…
1
vote
0 answers

Client authentication (certificat + private key) using WinHttp

I'm trying to communicate in https with a server using the Win32 API. Here is a very minimalist code : HINTERNET ses = WinHttpOpen(L"test",WINHTTP_ACCESS_TYPE_DEFAULT_PROXY,WINHTTP_NO_PROXY_NAME,WINHTTP_NO_PROXY_BYPASS,0 ) ; HINTERNET con =…
Captain'Flam
  • 479
  • 4
  • 12
1
vote
1 answer

Cannot load website with pound in URL using WinHttpRequest

path := "https://test.com/#query=" + target formMethod := "GET" fromData := "" HttpObj := ComObjCreate("WinHttp.WinHttpRequest.5.1") HttpObj.Open(formMethod,path) HttpObj.Send(fromData) I try to access a website with a # in the URL. However, the…
Dodeius
  • 125
  • 1
  • 10
1
vote
0 answers

Question on authenticating thru winhttp secure website

I have read quite a few threads on the subject but need a push in the right direction. I'm attempting to download pdfs from a secure website. I can login with InternetExplorer using vba automation & navigate the web page successfully. This is a…
Jim Carney
  • 87
  • 2
  • 10
1
vote
1 answer

How to receive data with WinHttpSendRequest from localhost

I try to receive some data using GET Parameter. When i try to get the data from a webadress it works fine. Just i changed the webserver to localhost i will not receive the data and get ERROR 12175 What do i have to change, that my code works for…
Storm
  • 13
  • 1
  • 4
1
vote
0 answers

Http request VBA response

Making my first steps on HTTP within VBA. Already managed to get cookie value in order to make a request. The problem I'm having is that the file I want to download is not in the first response. When I analyse using HTTP Header Live, the browser…
1
vote
1 answer

WinHTTP - The connection with the server was terminated abnormally

I import WinHTTP and try execute a request in a https url, like this: function TForm1.GetPage(AURL: String): String; var WinHttpRequest: IWinHTTPRequest; begin CoInitialize(nil); try WinHttpRequest := CoWinHttpRequest.Create; …
marciel.deg
  • 400
  • 3
  • 17
1
vote
0 answers

VBA XMLHTTP Pagination Issue - Can't get past the second page of search results

I'm developing VBA code to help keep an Excel workbook synced with a web invoicing service at https://www.fel.mx/CFDI33/Presentacion/Usuario/Ingreso.aspx I developed some working functionality using an Internet Explorer object and decided to try my…
pczg
  • 11
  • 1
1
vote
1 answer

Obtain the request headers using WinHTTP (C++)

I have a scenario where I need to see the request headers that are being sent to the server. Using the option flag WINHTTP_QUERY_FLAG_REQUEST_HEADERS in WinhttpQueryHeaders I tried but I received an error 12150 (ERROR_WINHTTP_HEADER_NOT_FOUND). My…
KESHAV K
  • 63
  • 10
1
vote
1 answer

VBA - WinHTTP Authentication on redmine failed

i am looking into this issue since days but i am not able to find a solution. I want to use WinHttp Authentication via VBA to Login to our Redmine to get the current issues.csv file for my Excel spreadsheets. I already found this useful question on…
ChristianR
  • 11
  • 1
1
vote
1 answer

HttpAddUrl fails with ERROR_SHARING_VIOLATION (32L)

I am attempting to write a price listener. the data arrives as a 'push' response, ie: chunked transfer-encoding. i have decided to use the http server api, as both async wininet and winHTTP read data apis both close the connection if there is no…
jonsl
  • 23
  • 1
  • 4
1
vote
3 answers

How to set client certificate chain in WinHttp

I am working on a client-server application where server is a web server which performs client validation based on SSL certificate. Server trust a Root CA certificate. Client is a windows application developed in C++ which has a certificate signed…