Questions tagged [winhttprequest]

WinHttpRequest COM object is a part of Windows HTTP Services (WinHTTP). It enables the use of WinHTTP from Visual Basic and script languages.

WinHttpRequest COM object is a part of Windows HTTP Services (WinHTTP). It enables the use of WinHTTP from Visual Basic and script languages.

Read the WinHTTP Reference.

177 questions
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
2 answers

Php Soap Server to retrieve vb WinHttp.WinHttpRequest

Good day, reader. I've been tasked with building a PHP SOAP server to recieve a xml sent by a VB client via WinHttp.WinHttpRequest Object. I am using nuSoap for the php server and it has yet to work until now. The xml that the vb client sent…
Ricky Fauzi
  • 21
  • 1
  • 2
1
vote
1 answer

How to get Cyrillic responsetext

Dim http As WinHttpRequest Set http = New WinHttpRequest http.open "POST", "test.php", False http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" http.send "txtmbx=test" msgbox(http.responsetext) http.responsetext is in…
No Name
  • 719
  • 6
  • 14
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
1 answer

cURL with Classic ASP

I'm trying to get SyncCentric to work with a legacy Classic ASP site that is currently using Amzpecty. Any help would be greatly appreciated! Thanks The cURL request should be: curl "https://app.synccentric.com/api/v3/products" \ -H…
1
vote
1 answer

How to save to a file the response content of WinHttp.WinHttpRequest.5.1?

I'm writing a script with Inno Setup that call my Web API written in C# that returns File(bytes, "text/plain", "MyFileName.txt"); I read that ResponseText returns a limited number of chars if is called in synchronous way. I'm using this code and I…
1
vote
0 answers

VBA Downloaded Zip file from OneDrive corrupted/cannot be opened

I want to download a zip file from OneDrive using VBA.(UserData folder zipped as UserData.zip and uploaded to the OneDrive location; size: 200KB) For that, I used the following VBA script.(sensitive data altered in the code) Sub…
1
vote
1 answer

WinHTTP getElementsByTagName() only shows opening tag for "section"

Using AhtuHotkey 2.0 Beta1 (i assume VBA script as well) getElementsByTagName() only shows opening tag for HTML5 tags section and nav however works with all other HTML4 tags. AutoHotkey Code HTMLObj :=…
LilBro
  • 81
  • 5
1
vote
1 answer

How the encoding/localization of a DLL error message is handled in a VB6 application?

(UPDATED: This question get updated after a better understanding of what's going on, I removed noisy wrong parts.) This piece of code belongs to a COM DLL. For the context, it contains an ActiveX object which is created and handled inside a classic…
Amessihel
  • 5,891
  • 3
  • 16
  • 40
1
vote
1 answer

WinHttpRequest Object returns "â??" instead of "✓" (U+2713)

I am using Excel 2007 (12.0.4518.1014) I have been using the WinHttpRequest Object to perform API GET Requests on a web service that hosts data for me. Everything else works properly and it grabs the JSON formatted data from the web service and puts…
Toddleson
  • 4,321
  • 1
  • 6
  • 26
1
vote
1 answer

Send HTTP Requests after browsing to a page as separate requests for Web Crawling (Angular site)

My company has recently upgraded to new version of iManage (a file archive system) and it no longer has libraries exposed to VBA. Due to company policy, I can run VBA but can't create VSTO/.NET addins. I'm trying to fix an addin tool that…
Dave Scott
  • 153
  • 6
1
vote
0 answers

WinHttpRequest: Send method

I'm trying to pass parameters in the request body, the documentation says : The request to be sent was defined in a prior call to the Open method. The calling application can provide data to be sent to the server through the Body parameter. If the…
1
vote
3 answers

How can I download a binary file using Python and WinHTTPRequest?

I need to download a bunch of pdf files from the web. I usually use the urllib3 library, but it is a corporate website with authentication. I can download a normal html web using the following: url = 'https://corpweb.example/index.html' h =…
1
vote
0 answers

Inno Setup WinHttpRequest with optional certificate

I have a tomcat server configured to use TLS and client certificate authentication optionally. Currently I am trying to establish a connection using Inno Setup with WinHttpRequest: WinHttpReq :=…
1
vote
1 answer

VBA How To Loop Through JSON response from WinHttp.WinHttpRequest

I can't figure out how to properly loop through a JSON(Object) response from the WinHttp.WinHttpRequest that I am getting. Below are the References being used. I prefer to just keep it as is and use WinHttpRequest Dim response As Object '…
heisenberg
  • 1,784
  • 4
  • 33
  • 62