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

WinHttpRequest "send" is working on office 2007 products but not 2013

I have written some code that retrieves text from our server and writes that text into a word document. We are in the process of upgrading our office suite from 2007 to 2013, but I'm having issues when testing my previously working code in Word…
Gurkmeja101
  • 592
  • 2
  • 9
  • 24
0
votes
1 answer

Download progress with WinHttp.WinHttpRequest.5.1

Is there a way to find out how much of a GET request has been received? I can't do Len(.ResponseBody) until it's complete, so that's not possible.
Hao Zhang
  • 147
  • 9
0
votes
0 answers

Download Binary File using WinHTTP.WinHTTPrequest with SSO Authentication, No Password, Multiple Redirects

Using VB and WinHTTP.WinHTTPrequest.5.1, I need to automate the download of a binary file for users that resides on a network share, requiring SSO authentication, without hardcoding or requiring a user to enter their password. I have been reviewing…
0
votes
0 answers

web host returned ERROR_WINHTTP_INVALID_SERVER_RESPONSE

I am hosting a website on a webhost for a game. I wanted to test if my webhost could handle the ammount of requests my game would make. So I created a script that would send 500 requests per minute to my website. It seemed to handle everything…
Joas
  • 11
  • 5
0
votes
0 answers

Fetching webpage source when the response is different in logged in and logged out state

With my code (given below), I capture source of my website's webpage and then I am trying to find a string with InStr and process it with Split. Everything is working but I have an issue where I need help. When I am logged in to my website supplying…
Sabha
  • 621
  • 10
  • 32
0
votes
1 answer

website Login issue Requestverification using WinHTTPrequest.5.1/Microsoft.XMLHTTP in VBA

I am trying to automating login and download data for the website(https://indexes.nasdaqomx.com/). My code is failing for authenticiation, where is the issue, my WinHttpReq.responseText top portion says as below:
pmr
  • 998
  • 2
  • 13
  • 27
0
votes
0 answers

Using TLS 1.1 with WinHttpRequest in classic ASP

I need to connect to another server from IIS 7.5 using TLS 1.1. I'm trying to run the code I found on this SO question, but I cannot write to nor read from httpRequest.option(9) -- the system says, invalid procedure call or argument: 'Option'. When…
ulu
  • 5,872
  • 4
  • 42
  • 51
0
votes
1 answer

Script to determine if an HTTP reponse is from intended domain

I am trying to write a script that will send an HTTP "GET" to a URL then determine if the response came from the same domain or not. I have been playing around with VBS and the WinHttp.WinHttpRequest.5.1 object. Sadly this does not give me any…
Bsaltafo
  • 51
  • 3
0
votes
1 answer

Invalid credentials error when attempting PUT to a HTTPS site

I am attempting to submit a file on a HTTPS site using VBA, but I am having issues with the authentication. (When viewed, the site has the standard field for file name, with a "browse" button, and a "submit" button.) I've tried a couple of things...…
nwhaught
  • 1,562
  • 1
  • 15
  • 36
0
votes
1 answer

WinHTTPRequest Automation Error (2147024769)

I've recently changed from Winsock to WinHTTPRequest however when this line runs: Set WinHttpReq = New WinHttpRequest I receieve an Automation Error :2147024769. This code works fine on windows7/Windows server 2008, however is failing in Windows…
dan983
  • 454
  • 2
  • 5
  • 19
0
votes
1 answer

Why is Server not receiving multipart/form-data post data

I've been trying to post data to a server using multipart/form-data however the server doesn't seem to receieve anything. VB Code ' create a boundary consisting of a random string strBoundary = RandomAlphaNumString(32) strBody = "--" & strBoundary…
dan983
  • 454
  • 2
  • 5
  • 19
0
votes
1 answer

How does one create an http post call with Excel VBA?

I am able to do GET's with ease by calling the following code: Dim theURL As String, theRequest As Object theURL = "http://localhost/myapp/encrypt.jsp?str=" & _ encodeStr(range("I10").Value) & "&user=myUser&pass=myPass" Set theRequest =…
Rick Parker
  • 15
  • 2
  • 6
0
votes
0 answers

Sending and receiving a file via WinHTTP from Lotus Notes

I am trying to send a document file from Lotus Script to a web server and save it there. Unfortunately the file transfer does not work. I have a Lotusscript agent to get the document and this part is working ( str_filecontent contains the correct…
Heiki
  • 129
  • 1
  • 10
0
votes
1 answer

WinHTTPRequest Returning Empty Response Text and Body

I'm having trouble getting response text and a response body returned when I run the code below. The "HTTP/1.1 200 OK" message comes back along with response headers, but no response body. I've confirmed this result using Fiddler2 and also looking…
Osprey2k
  • 3
  • 1
  • 3
0
votes
1 answer

Download Empty File with VBScript

When I'm trying to download an empty file with this script, I get the error: Arguments are of the wrong type, are out of acceptable range or are in conflict with one another. How can I fix it? Here is my script Set objHTTP =…
Michael
  • 2,356
  • 3
  • 21
  • 24
1 2 3
11
12