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

winhttp request only works when fiddler used as a proxy

I have never run into this before. I am trying to login to a website with the ultimate goal of downloading documents. in order to download documents I need a secure cookie which I get with winhttp. This website was complicated and involves many 302…
Jim Carney
  • 87
  • 2
  • 10
1
vote
0 answers

Trying to create curl in excel vba

I'm trying to create a paylink with mollie in excel via api When I just use curl, below is working: curl -X POST https://api.mollie.com/v2/payments \ -H "Authorization: Bearer test_XXXXXXXXXXXXXX" \ -d "amount[currency]=EUR" \ -d…
Roy
  • 11
  • 2
1
vote
1 answer

How to send a form-data POST request with VBA in Excel using WinHTTPRequest

I am building an API using FastAPI that must be accessible from Excel VBA. FastAPI's OAuth2 authentication mechanism requires me to send a "form-data" POST request, but I don't know how to do this using WinHTTPRequest in VBA. I already have a…
Thomas Browne
  • 23,824
  • 32
  • 78
  • 121
1
vote
2 answers

VBA - WinHttpRequest.Send Progress

In my code I have the following line Dim Http2 As New WinHttpRequest Http2.Open "GET", URL2, False Http2.Send when the third line is executed, excel goes black and seems like it's not responding. Is there a way to get a status on the operation?…
thepepp
  • 304
  • 1
  • 3
  • 15
1
vote
1 answer

VBA not enough memory resources error when download a large file

when I try to download a large file (2GB) using this function this error appears "not enough memory resources are available to complete this operation". so, what can I do? Function DownloadFile(ByVal URL As String, ByVal Path As String, ByVal…
mzoon
  • 41
  • 5
1
vote
1 answer

VBA download form URL with login that redirect to another one

the website requires login then redirect you to other url then download the file this function works fine with url with no redirction but not with my case Function DownloadFile(URL As String, Path As String, UserName As String, Password As String)…
mzoon
  • 41
  • 5
1
vote
0 answers

Downloading files from protected website with VBA-Excel

I'm trying to download a file from a protected webpage (from my job, so I cannot post the url). When I save the bytes (I'm using a WinHTTP request), in an .xls, the file appears to be corrupted. My code (without sensitive information) and a little…
1
vote
0 answers

WinHTTP Open method is causing delay?

I am using WinHTTP 5.1 in one of my Delphi FMX application which connects to REST servers in parallel. There are lot of GET and POST which are called continuously by the client. I have observed that after say 200-300 GET commands below method is…
Padam
  • 117
  • 1
  • 7
1
vote
2 answers

Using a IE 11 Cookie in a vbscript WinHttp.WinHttpRequest.5.1 GET

I am trying to pull website data using WinHttp.WinHttpRequest.5.1. The website requires login and the cookie is stored with IE11. WinHttp.WinHttpRequest.5.1 creates it's own instance and therefore is not logged in to the requested website. Is…
user8688718
1
vote
1 answer

ClearMyTracksByProcess Without Dialog | WinHttp.WinHttpRequest.5.1 | MSXML2.XMLHTTP

I have a VBS that runs CreateObject("MSXML2.XMLHTTP").Open "GET" however, I need to delete the IE11 cache before it runs because the get keeps pulling a cached version of the website that wont expire for 1 minute after the inital get. If I use…
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
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
2 answers

Localbitcoins authenticated HTTP POST request error

I'm trying to send POST request to LocalBitcoins API server but I'm only receiving errors (41 and 43) despite the GET request works perfectly even with parameters (arguments). Sub initrequest() 'this is a POST request with no arguments that…
bluequasi
  • 11
  • 1
  • 3