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
0
votes
0 answers

How should I format header and body by using WinHttpSendRequest in cpp?

I'm still relatively new to c++ so this really bothering me for a while.... What I'm trying to do here is to send a bunch of data on windows MFC to the server API and get data back. The only library I can use now is the winhttp.h.I have a couple…
Arthur V
  • 23
  • 4
0
votes
1 answer

Sharepoint Online SOAP request to create List item via Excel VBA

I need to programmatically add a list item to a SharePoint Online list, exclusively from the VBA environment in an Excel workbook. My current list has one column: Title (I added the below list item manually in my web browser) Current VBA test sub…
0
votes
1 answer

How to test WinHTTP POST locally

I have a requirement to send some data to a 3rd party listener via POST. I've written a database trigger to send via WinHTTP but I've never done this before. How can I set up a POST listener and send to myself? I'm thinking I could use 127.0.0.1…
StuTheDog
  • 451
  • 1
  • 11
  • 19
0
votes
0 answers

VBA Multiple WinHTTP Aysnc Requests in same Sub

What I need Ability to hit an endpoint on my webserver multiple times in a single call to my sub Each http call is done asynchronously. Each http call is done with no caching / no cache busting workarounds which fill my cache. Each http calls is…
Griffin
  • 13,184
  • 4
  • 29
  • 43
0
votes
2 answers

How to download a binary file in T-SQL from a URL

I am trying to create a SQL Server stored procedure to download an unknown binary file type (usually either jpg, pdf, zip, rtf, or doc) from the specified URL. When this is executed, I have verified that the URL is getting invoked and the file is…
Bryan Williams
  • 452
  • 1
  • 5
  • 17
0
votes
1 answer

Send an array string inside POST Request VBA Excel

I'm trying to send a post request to an API that takes an array of strings as an argument. It comes out an error specifying that the types are not allowed and when the request is sent correctly all the data is left in the first position of the array…
dvque
  • 469
  • 4
  • 13
0
votes
0 answers

WinHttp.WinHttpRequest.5.1 REST API

Please bear with me - I am trying to make a WinHttp.WinHttpRequest.5.1 to retrieve data back from an API. After research i am using the below code. If I enter the url below directly into the browser, a popup box comes up to enter username and…
Emma
  • 577
  • 1
  • 13
  • 27
0
votes
1 answer

WinHTTPRequest.ResponseText not returning the full HTML?

I tried to use WinHTTP Request to retrieve a webpage (HTTPS website) in VB.Net and for some reason it was only returning the partial HTML, is there any length restriction on the number of characters it could take? If so, can I get the content after,…
AZhu
  • 1,312
  • 6
  • 22
  • 40
0
votes
1 answer

JSON Post via VBA

I have to send a json post via VBA. Here is a sample post: curl\ -d '{"@SOURCE":"A1","@DESTINATION":"B1","apikey":"SDFLIEJLE....DLKFJSLKDJF"}'\ -H "Content-Type: application/json"\ -X POST https://12345678.net:8443/workflow/0 I know, I have…
AlexTM1
  • 9
  • 3
0
votes
0 answers

VBA HTTP Request response indicates missing request body parameter

Attempting to do a WinHTTP request to submit form. One of the request body items is called 'StartDateTime' and when I view the request body in developer tools - I see it is sending " StartDateTime='03/04/2020 00:00:00' " However, when I attempt to…
0
votes
0 answers

Downloading a file with Winhttp/VBA partially successful

I'm stuck with a near success on automating a download process. I'm using fiddler & taking the values & hard coding them for now til it works. The website is secure & i get the cookies OK. However when testing the download i am getting a file of…
Jim Carney
  • 87
  • 2
  • 10
0
votes
0 answers

How to handle a 302 error using winhttp & VBA

I am continuing my quest to build in my database the ability to download files from company's we work with. I use fidler while I login thru a browser & watch what happens while I download a file. Mostly I can build a job to get cookies & then use…
Jim Carney
  • 87
  • 2
  • 10
0
votes
1 answer

receiving 12030 at WinHttpReceiveResponse

I just got into using SSL with winhttp. I am receiving ERROR_WINHTTPCONNECTION_ERROR in MSDN the docs it says, The connection with the server has been reset or terminated, or an incompatible SSL protocol was encountered. For example, WinHTTP version…
Ahmed Can Unbay
  • 2,694
  • 2
  • 16
  • 33
0
votes
0 answers

HTTP request Timed out

I'm trying to check a webpage if it is logged in or not. For that I used win http GET request for google to test it. But i'm getting "The Operation Timed Out" Error after Send command. Also Tried with xmlHTTP and serverxmlHTTP. Dim xmlHTTP As…
ArunBabu
  • 25
  • 1
  • 6
0
votes
1 answer

How to decompress http responses in vba excel?

How to decompress/decode gzip/deflate http/s responses in vba? Winhttp5.1 does not automatically decompress/decode gzipped or deflate responses. MSxml2 does decompress/decode responses, but does not allow custom headers or referers.
Mavin
  • 51
  • 5