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
17
votes
3 answers

differences between Msxml2.ServerXMLHTTP and WinHttp.WinHttpRequest?

just when I finally understood the difference between Msxml2.XMLHTTP and Msxml2.ServerXMLHTTP http://support.microsoft.com/kb/290761 XMLHTTP is designed for client applications and relies on URLMon, which is built upon Microsoft Win32 Internet…
opensas
  • 60,462
  • 79
  • 252
  • 386
12
votes
1 answer

WinHttp.WinHttpRequest adding to the content-type

I'm trying to make a request to kigo's api using vba WinHttp.WinHttpRequest, i was able to send a request, but WinHttpRequest changes the content-type adding Charset=UTF-8 when it sends the request, with that kigo's api returns 415 error. I set the…
Manuel Peixoto
  • 372
  • 4
  • 16
11
votes
4 answers

Perform HTTP Post from within Excel and Parse Results

I have access to an API. The API takes an XML post as input and then returns an XML response with the relevant data. I want to Send the HTTP Post to the Server (Authentication and Request will be sent together) Receive the response (One of the…
Scott
  • 877
  • 4
  • 12
  • 24
10
votes
2 answers

How to send files via HTTP_POST with Excel using VBA?

The question asked here: How can I send an HTTP POST request to a server from Excel using VBA? is almost exactly what I was looking for except that I am trying to send a number of files to the server. I googled further and found How do I upload a…
jonathanbell
  • 2,507
  • 5
  • 23
  • 40
5
votes
1 answer

VBA | WinHttpRequest.5.1 | Ignore SSL Error doesn't work anymore

I'm using a WinHttpRequest.5.1 object to make some https requests on an excel 365 (16.0.11328.20562) vba script. I know that the certificate from server will occurs an error because the CN is wrong. Therefore I suppress this error with the option to…
Dominik
  • 178
  • 2
  • 8
5
votes
1 answer

Asynchronous HTTP POST request without waiting for response in Inno Setup

I have an Inno Setup Installer and need to make an API call during setup. This posts some data to a remote API. The POST call is performed in the [Code] section using Pascal and the WinHttpRequest object. The API is ASP.Net WebAPI 2 (C#). I have…
metalar
  • 53
  • 3
5
votes
1 answer

Post Method + WinHttpRequest + multipart/form-data

I'm stumped why this doesn't work can't seem to find any problems. Here is the code. Public Const MULTIPART_BOUNDARY = "speed" Function getBalance() As String Dim sEntityBody As String Dim postBody() As Byte Dim username As String Dim password As…
SSpoke
  • 5,656
  • 10
  • 72
  • 124
4
votes
4 answers

WinHTTP.WinHTTPRequest.5.1 does not work with PayPal sandbox after TLS 1.2

PayPal sandbox just recently restricted to TLS 1.2 connection. This makes our site stop working with PayPal sandbox although it stills work with the production PayPal. In the future the production PayPal will have the same restriction. We're…
Phong
  • 66
  • 1
  • 1
  • 6
4
votes
2 answers

WinHttpRequest timeouts

I'm using AHK script to send some POST requests. I'm trying to get a timeout response so I can popup some message to the user. I cant figure out how to use the "SetTimeouts" method and the "WaitForResponse" See code below WebRequest :=…
bardalas
  • 81
  • 1
  • 1
  • 10
4
votes
1 answer

How to do logins using the WinHttpRequest COM?

You can see lots of people automating things on websites using mouseclick and keystroke simulation on browser windows or using the IE COM, but for some applications you don't want your application to take hundrets of megabytes of RAM and use loads…
Forivin
  • 14,780
  • 27
  • 106
  • 199
4
votes
1 answer

winHTTP GET request C++

I'll get right to the point. This is what a browser request looks like GET /index.html HTTP/1.1 This is what winHTTP does GET http://site.com/index.html HTTP/1.1 Is there any I can get the winHTTP request to be the same format as the regular…
Ilia Choly
  • 18,070
  • 14
  • 92
  • 160
4
votes
2 answers

VBA - Go to website and download file from save prompt

I've been spending the last few hours trying to figure out how to save a file onto the computer using VBA. The code template below that I found on another forum seems promising, except when I go to the desktop to access it, the .csv file has what…
user2370064
  • 41
  • 2
  • 2
  • 6
3
votes
1 answer

GetLastError returns 6 after call to WinHttpOpenRequest

Im not sure if this is lack of knowledge in msdn or not. i Have the following code: #include "stdafx.h" #include #include #include #include #include "myHTTP.h" int main(){ …
jimmy
  • 73
  • 1
  • 7
3
votes
1 answer

win32com winhttp post request file

I'm trying to post a request with authentication. This works for a get request: import win32com.client h = win32com.client.Dispatch('WinHTTP.WinHTTPRequest.5.1') h.SetAutoLogonPolicy(0) h.Open('GET', url, False) h.Send() But I'm trying to make a…
3
votes
1 answer

Getting an IStream from an OleVariant

I am using Delphi along with WinHTTP to do an HTTP request to download some files from the internet, and I can do the request but I don't know how to get the IStream from the OleVariant that is returned from ResponseStream. I have spent a lot of…
Okey
  • 105
  • 5
1
2 3
11 12