What VBA code is required to peform an HTTP POST from an Excel spreadsheet?
Accepted Answer Note: For greater control over the HTTP request you can use "WinHttp.WinHttpRequest.5.1" in place of "MSXML2.ServerXMLHTTP"
...
I am using ServerXMLHTTP to perform an HTTP POST. The response returned is a redirect (specifically 303 See Other). ServerXMLHTTP is automatically following this redirect but this is causing an authentication failure as is not propagating the Authorization header of the original request.
Is there a way I can prevent the automatic redire...
I have to use the XMLHttp object in classic ASP in order to send some data to another server via HTTP from server to server:
sURL = SOME_URL
Set oXHttp = Server.CreateObject("Msxml2.XMLHTTP")
oXHttp.open "POST", sURL, false
oXHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded;charset:ISO-8859-1;"
sPost = SOME_F...
I am writing both sides of an asp-webpage to asp-webpage conversation in which the originating webpage pushs information to the receiving webpage which then processes it and sends back a response. The originating webpage must use the code below to start the converstation...
url = "www.receivingwebsite.com\asp\receivingwebpage.asp"
info...
In my previous question, I was accidentally sending token/value pairs with an text/xml content-type which resulted in nothing being sent. Tim C's insight into that problem was extremely helpful. Thanks again, Tim!Looking back at the original sending code, I now realize that the setting of the ServerXMLHTTP's content-type to text/xml wa...
Hi Everyone,
I'm trying to implement a http handle (.ashx) using asp.net for an environment where the clients will be using serverxmlhttp to request information from the handler. Here is the code so far...
CLIENT.ASPX
<%@ Page Language="VB" %>
<%
On Error Resume Next
Dim myserver_url As String = "http://mydomain.com/Server.a...
I am getting an error using the MsXml.ServerXmlHttp object from JScript under classic ASP when the call is asynchronous. The error message is "cannot find window class"
The environment is: Windows Server 2003 SP2; IIS v6; Classic ASP; JScript
When ServerXmlHttp.open is called with asynch = true the error occurs on the send method.
Wh...
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 clie...
Here's the gist:
I have a call I want to make in asp, and I do not care about the response. I just want to fire the call and I do not want the page to wait for the response. According to the documentation, it should look something like this:
dim xmlhttp : set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST", ur...
We have the following probe query that works for a while, but it’s broken after most recent deploy onto a new set of machines.
I debugged into our ISAPI Extension code and found out that the REFERRER was not forwarded over as expected.
I checked the IIS settings, there is no difference between the machines showed problem and the produ...
Error Type:
msxml3.dll (0x80072F0C)
A certificate is required to complete client authentication
I am sending an XML file to a remote server
putUrl =https://www.myweb.com/test/drhandler.php
xml_put = "<?xml version=""1.0""?><subscription id=""" & "14" &"""><status>" &"das" & "</status></subscription>"
Public Function SendBatch(xml_p...
Hello all,
What is the best replacement for ServerXMLHTTP30 in .NET 3.5. Is HttpWebRequest good candidate?
I am in the process of creating an application that will get a XML stream as a response to a request.
Appreciate any tips/help or guidence.
thank you.
--Ranjit
...
Just to confirm
When sending XML data with asp to https://www .site.com I am getting
msxml3.dll (0x80072F0C)
A certificate is required to complete client authentication
I Talk to https://www .site.com IT and they said that they don't have to provide any certificate to install.
IS it correct?
here is the function
Set xmlhttp = Server...
I'm pulling an RSS feed from a remote location using ServerXmlHttp:
Dim httpRequest
set httpRequest = server.createObject("Msxml2.ServerXMLHTTP.6.0")
httpRequest.open "GET", "http://www.someurl.com/feed.xml", false
httpRequest.send()
response.write httpRequest.responseXML.xml
However there must be encoding issues somewhere along the l...
Can anyone provide some insight into how i'd go about decompressing an XML response in classic ASP. We've been handed some code and asked to get it working:
Set oXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
URL = HttpServer + re_domain + ".do;jsessionid=" + ue_session + "?" + data
oXMLHttp.setTimeouts 5000, 60000, 1200000, 1200...
I'm receiving an intermittent "msxml3.dll error '80070005' Access is denied." error. The object always posts back to the same domain. I don't quite know why it works sometimes and why it fails other times. This is Classic ASP - VBScript
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "POST", "http://xxxx.com/GetCache...
I am trying to build an application where i can upload files to youtube.
I have gotten OAuth working, and Youtube is returning a session!
The problem i am having is, youtube requires i make an XMLHTTP POST to get a url where i can upload through my web page.
I have no idea how to make an XMLHTTP Post with the extra parameters youtube r...
Does anyone know how to set up set up a default action for when a ServerXMLHTTP request times out? I'm using setTimeouts() to set the time out options according to the MSDN site.
Ideally I would like to initialize the request again from the beginning or refresh the page should it time out.
I'm using classic asp and jscript.
Here's my...