winhttprequest

WinHTTP VBA subsequent request cannot use the previous login credentials?

a 夏天 提交于 2019-11-29 05:11:05
I'm using WinHTTP in Access 2007 VBA to fetch some list of items requiring a cookie login credential account . First I login through https://www.example.com/login.php with this: Dim strCookie As String, strResponse As String, _ strUrl As String ' Dim xobj As Object ' Set xobj = New WinHttp.WinHttpRequest ' strUrl = "https://www.example.com/login.php" xobj.Open "POST", strUrl, False xobj.SetRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" xobj.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded" xobj.Send "username=johndoe2&password=mypassword" '

Perform HTTP Post from within Excel and Parse Results

邮差的信 提交于 2019-11-28 21:41:07
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 options to be returned is CSV or XML) Insert the data into the appropriate rows and columns and then perform data analysis using pivot tables. I don't have a programming background in excel but am comfortable with different web scripting languages, HTML, CSS, Javascript etc. Any ideas? If you need to send your input xml as the message body here is how

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

爱⌒轻易说出口 提交于 2019-11-28 08:50:47
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 using classic ASP and Microsoft WinHTTP.WinHTTPRequest.5.1 component for communication with PayPal. Here's the code below. objHttp.StatusText returns "Bad Request". We're on Windows Server 2008 R2. I tried to use MSXML2.ServerXMLHTTP.6.0 instead, but it only works on my Windows 8.1 development machine, not on our Windows Server 2008 R2. Although MSXML2

WinHTTP VBA subsequent request cannot use the previous login credentials?

荒凉一梦 提交于 2019-11-27 19:03:42
问题 I'm using WinHTTP in Access 2007 VBA to fetch some list of items requiring a cookie login credential account . First I login through https://www.example.com/login.php with this: Dim strCookie As String, strResponse As String, _ strUrl As String ' Dim xobj As Object ' Set xobj = New WinHttp.WinHttpRequest ' strUrl = "https://www.example.com/login.php" xobj.Open "POST", strUrl, False xobj.SetRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" xobj.SetRequestHeader

differences between Msxml2.ServerXMLHTTP and WinHttp.WinHttpRequest?

白昼怎懂夜的黑 提交于 2019-11-27 14:45:00
问题 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 (WinInet). ServerXMLHTTP is designed for server applications and relies on a new HTTP client stack, WinHTTP. ServerXMLHTTP offers reliability and security and is server-safe. For more information, see the MSXML Software Development Kit (SDK)

Perform HTTP Post from within Excel and Parse Results

空扰寡人 提交于 2019-11-27 14:01:56
问题 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 options to be returned is CSV or XML) Insert the data into the appropriate rows and columns and then perform data analysis using pivot tables. I don't have a programming background in excel but am comfortable with different web scripting languages, HTML

How to send files via HTTP_POST with Excel using VBA?

十年热恋 提交于 2019-11-27 08:29:56
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 zip file via HTTP post using VBA? This was also good, but pretty discouraging - it seems like a lot of work (not just making an HTML form here...). Option #2 here: http://www.motobit.com/tips/detpg_post-binary-data-url/ (as cited in the question on SO noted above) seems like it would work well, but as I work in JS and CSS, I have no idea how to create

How to send files via HTTP_POST with Excel using VBA?

人盡茶涼 提交于 2019-11-26 16:32:45
问题 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 zip file via HTTP post using VBA? This was also good, but pretty discouraging - it seems like a lot of work (not just making an HTML form here...). Option #2 here: http://www.motobit.com/tips/detpg_post-binary-data-url/ (as cited in the question on