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

WinHttpSendRequest and HTTPS on Windows XP

OS: Windows XP SP3. Application should download the picture from the website via https protocol. As a result, WinHttpSendRequest returns an error -2146893018. Here is the code snippet: hRequest = WinHttpOpenRequest(hConnect, L"GET", Path, Protocol,…
Ig_M
  • 107
  • 9
0
votes
0 answers

Unable to access specific web sites via WinHTTP

I am trying to access file using WinHTTP from a web site and it fails for some web sites. I cannot use WinINet as WinINet does not support server implementations and cannot be used from a service. It fails with error 12029 "The attempt to connect to…
Sanjay Karia
  • 309
  • 1
  • 3
  • 13
0
votes
1 answer

winnhttp resources not load- impossibile scraping trough table tag name

I use vba for scraping our web site. I did it using InternetExplorer object. Then I'll tried using winhhtp. I'm able to to the same but not take data from this page. I'm able to generate using .stream a file in html that have all the code in the…
Mao
  • 1
  • 6
0
votes
1 answer

Native C++ node.js module addon WinHttp Detect Auto Proxy Config Url Error return

I am stuck in a tight spot and I need some help with some C++ code. This is my first attempt at doing C++ and it born mostly from necessity at this point. I am trying (unsuccessfully it feels) to build a native NAN module for Node.JS that will be…
INK
  • 13
  • 5
0
votes
1 answer

Scrape tag input in a form using WinHTTP

I have overcome by myself connection problem using WinHTTP (it was an error with Debug.Print of the response text method). So I have to take a lot of value from a form ( over 20) and then create a string and pass it to…
Mao
  • 1
  • 6
0
votes
0 answers

Jquery and winhttp msxml2 request

I just compile a source code to login in intranet login page, navigate trough page, scrape data and so on using internet application and vba starting from a Excel form. So, i would like to do the same thing using silently connection. I am be able to…
Mao
  • 1
  • 6
0
votes
0 answers

JScript (ES3 Javascript) WinHTTP callback

I'm trying to use WinHTTP in JScript (ES3) to a-synchronously retrieve the responsetext of an internal site that requites SSO log-on. The below works (I've replaced the url with "http://www.google.com/"), but I don't know how to get a callback or…
JasperD
  • 152
  • 1
  • 3
  • 15
0
votes
0 answers

vba how to read and store LTPA?

I'm trying to establish a "silent" connection using WinHTTP or xmlHTTP starting from an Excel form to our intranet. I've just written code that opens IE, does login, passes data, compiles form and gets the information I want. Now I want to do the…
Mao
  • 1
  • 6
0
votes
1 answer

Parse URLs out of a HTML page

I have a string containing an HTML page downloaded via WinHttpReadData. The string is a simple char*. I've been trying to figure a way to extract only the URL's that are on that page. To give you an example, imagine you are searching google for the…
Mr Aleph
  • 1,887
  • 5
  • 28
  • 44
0
votes
0 answers

Windows WinHTTP (C++ API) WinHttpSetCredentials with non-ascii (actually non-Windows-1252) error 87

I am trying to use the WinHTTP library with Basic Authentication. I'm testing the case where the user name or password has "special" characters (ie, not in Windows-1252) and I cannot seem to set the credentials using WinHttpSetCredentials The…
JamEnergy
  • 720
  • 8
  • 21
0
votes
0 answers

WinHttp api crashes the windows service

from the microsoft documentation WinHttp is supported in services but WinInet isn't but I tried both and both crashed the service when calling WinHttpOpen/InternetOpenA this is the call stack from windbg :…
dev65
  • 1,440
  • 10
  • 25
0
votes
0 answers

Finding the cipher suite used by a server using WinHTTP c++

The current task I've been working on is to obtain the cipher suites that is currently used by a server. I have been using WinHTTP and I haven't found anything related to cipher suites in this library. Is there any way to do this? Just need to…
KESHAV K
  • 63
  • 10
0
votes
0 answers

Initialising an LPSTR variable, Not working as per MSDN example

I was reading through WinHttp functions and tried executing an example code from MSDN. The first line of the code LPSTR pszData = "WinHttpWriteData Example"; throws an error when I execute. Error C2440 'initializing': cannot convert from 'const…
Shrihari
  • 5
  • 4
0
votes
0 answers

C++ WinHTTP library generating symbol errors

I am compiling the following code and get the below errors: This is really confusing me on how to fix it, because I don't see any errors highlighted in Visual Studio, and I have researched/followed the documentation. I tried reading the linker…
jimmy
  • 73
  • 1
  • 7
0
votes
1 answer

MSSQL Win HTTP 5.1 ignore certificate

I'm trying to to create an https request from a stored procedure in MSSQL to a https website using WinHttpRequest 5.1. I have managed to create the request to a normal http website using OLE automation procedures (sp_OACreate, sp_OAMethod, etc..)…
Petru Ritivoiu
  • 145
  • 1
  • 12