MSXML2.XMLHTTP
I use MSXML2.XMLHTTP to receive some HHTP responces from
remote server, unfortunatedly, it uses cookie-based auth.,
so I am unable to pass it, due to inability to store
cookies. How can I retrieve cookies from the headers of
HTTP response, and how can I add them to my request at the
next step?
View Replies
ADVERTISEMENT
Uploading from browser to server using Msxml2.XMLHTTP takes a long time about 15 minutes for a 1.5MB file at 37.2Kbps, although it does get there. Is there anyway to speed things up?
Here's the code ...
View Replies
View Related
I am running the following code and I get an error:
Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.3.0")
xmlHttp.Open "Get", URLToRSS, false
xmlHttp.Send
RSSXML = xmlHttp.ResponseText
The error is:
msxml3.dll error '800c0005'
The system cannot locate the resource specified.
It points to the "xmlHttp.Send" statement.
This code runs perfectly on my old ISP's server but not on my GoDaddy server.
View Replies
View Related
I use "Msxml2.XMLHTTP" in a asp page, to save changes of database in a html
file. All worked well until I installed a new email server (ipswitch imail). Now this object don't work remotly, fire the error:
///////////////////////////////
msxml3.dll error '80072efd'
A connection with the server could not be established
//////////////////////////////
I check the page in a local session in the server and works well, but not in remote pc.
What is happening?
View Replies
View Related
I need to use MSXML2.DOMDocument in my ASP page. The following is my code:
xml.asp:
=====
<%
dim sx
sx="<root><a>text1</a><b>text2</b></root>"
dim xd
set xd=Server.CreateObject("MSXML2.DOMDocument")
xd.loadXML(sx)
Response.write xd.hasChildNodes
%>
Somehow, xd.hasChildNodes return False, i.e. there is nothing in the xd. I
guess the error was caused by missing the path of the MSXML2 library file. It seems
like the code doesn't know where the MSXML2.DOMDocument is. But the code didn't
generate any error.
View Replies
View Related
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application?
However, would I only be able to call web-service in a an asynchronous mode (with a callback function)? If so, how?
View Replies
View Related
this code works with msxml4, but found out the server it ultimately will sit on only has ver 3 and they won't update. so, this code fails on the bold line and i can't figure out why.
Code:
Set httpReq = Server.CreateObject("MSXML2.ServerXMLHTTP" )
Set myXmlDoc = Server.CreateObject("MSXML2.DOMDocument" )
httpReq.Open "post", webServiceUrl, False
httpReq.setRequestHeader "Content-Type", "text/xml"
httpReq.setRequestHeader "SOAPAction", "soapserver/soap:CreatePreview#CreateGraphics"
httpReq.Send soapEnv 'fails here
returnSoapEnv = httpReq.responseText
View Replies
View Related
Anyone having trouble 'Load'ing xml files with 'Msxml2.DOMDocument' in ASP?
The Server is IIS 5.1 and client is PocketPC2002 (Pocket IE). Code:
View Replies
View Related
I have been using the following code to access a remote url, which works fine, but if the remote "geturl" does a redirect (as the page in this code does), I have know idea what the redirected url is. Page still displays, (including the html source code), but I cannot determine what the base href is (that is, I don't know the url of the page being displayed, since is is a redirected page).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<%
geturl ="http://schoolbonus.com/partner.asp?mpid=460"
dim objXML,displayText
Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXML.open "GET", geturl, False
objXML.send
displayText = objXML.responSetext
%>
<pre><%= Server.HTMLEncode(displayText) %></pre>
**************************************************
<%= displayText%>
View Replies
View Related
I've used MSXML2.ServerXMLHTTP in ASP to write a link checker. It checks a list of URLs stored in a db and flags any websites/webpages that are down. Since I am only interested in whether the page is up or not and not in the actual HTML, I use HEAD instead or GET.
Code:
Set getPage = Server.CreateObject("MSXML2.ServerXMLHTTP")
getPage.Open "HEAD", URL, false
where getPage is my object, URL is the URL to check
and I can also do
Code:
Set getPage = Server.CreateObject("MSXML2.ServerXMLHTTP")
getPage.Open "HEAD", URL, false , username , password
which checks the URL using the username and password supplied. Everything works as expected but my problem lies in the fact that the password is in plaintext in the ASP page. It is not good security practice to have an ASP page contain a username/password combo in plaintext. This means that if someone had file access to the ASP page (intranet) then they could see the username/password pair which we want to try
and avoid.
Does the HTTP standard only allow for username/passwords to be sent in plaintext?
View Replies
View Related
I'm trying to integrate portions of a page on one domain into another domain. The goal is to use a rate calculator on the remote site to produce quotes on the main site. I have permission to do this. I'm using MSXML2.ServerXMLHTTP and it's working quite well except that I am unable to set a session cookie that seems to be required to generate a PDF on the remote site.
I've tried passing the session cookie thru MSXML2.ServerXMLHTTP, but that doesn't work. I've tried setting a cookie using ASP but it seems that PDF generation on the remote site requires the session cookie from the remote domain. I've tried setting a cookie with the domain property set to the remote site but the cookie is never written. I think this is a security feature in the Http Session State.
Is it possible to set a session cookie in MSXML2.ServerXMLHTTP with a remote host/domain? Can ASP be used to set a cookie with a domain other than the requesting domain? There seems to be a property to do this but I haven't been able to get it to work. Any other suggestions?
View Replies
View Related
Consider the following simple function to get the contents of a remote URL:
Function GetURL(str_URL)
Set obj_XMLHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP.3.0")
obj_XMLHTTP.Open "GET", str_URL, False, "", ""
obj_XMLHTTP.Send
GetURL = obj_XMLHTTP.ResponseText
Set obj_XMLHTTP = Nothing
End Function
Is there anyway that I can use a remote proxy server to make the request?
View Replies
View Related
I'm trying to remotely get a pdf file - http://remoteServer/file.pdf - in order to store it into another server, maybe with Scripting.FileSystemObject
However the following code doesn't work properly:
------------
url = "http://remoteServer/file.pdf"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
------------
as xmlhttp.responseText does not contain the whole file textStream, but only a part of it.
View Replies
View Related
How do I send an input-param to my web service with MSXML2.ServerXMLHTTP? Can this be done without the soap-toolkit? Code:
View Replies
View Related
The following shows when I call it locally. If you look at the URL that has http://localhost, this is the one I use when I call the ASP page from the
same local server (self contained).
When I want to call the remote server (the one that fails) I use the other URL has http://remote.
I hope this helps..
Because the webservice is the same on both machines and I'm calling both machines the same, what would cause the remote machine to return that the Request form not recognized?
View Replies
View Related
That's better than internal server error. This is what came back, which is confusing because when its called locally it comes back fine. Am I missing something? ....
View Replies
View Related
I am trying to access a webservice to post some values via MSXML2.ServerXMLHttp The OS used is win2003 on both machines.
When I access the local machine (A) which has the same service the call works great. When I access the other machine (B) that is on the same subnet, I get a Status of 500. Code:
View Replies
View Related
I need to get data from a url (which throws out XML) and then parse it using DOM or XSLT. I know, to get the data, I need to use XMLHTTP.
Can I get a sample code for it?
View Replies
View Related
I have the code below and in a random fashion it is responding extremely
slowly. On in 3-4 times it takes ages to do the job..
It is the line: xml_http.Send("") that gets stuck. I am on IIS 6 on Windows
Server 2003 Web Edition. Code:
View Replies
View Related
One of the limitations of ASP is the lack of a dynamic SSI, in which you can include files using variables. So far I know only of two methods to go around that.to use the File System Object.to use the XMLHTTP Object.Which one of the two is less of a burden for IIS ? Or are there other ways that are much better?
View Replies
View Related
I m getting information with XMLHTTP from 3 sites at the same time. but it is so slow. how can i make it faster. any information or any document about it. anyone who know about it. it is about alsa bandwith. how can i increase xml http performance.
View Replies
View Related
I got a great little example of how to use XMLhttp to query an external web site (I'm wanting to do my own localised search engine by extratcing the content and putting it into an Access DB), but it only appear to extract from the page that you point it to, ie the main default page is extracted when you put in something like www.hp.com.
I want the util to extract content from all of the found pages in the site I suppose like a spider. Has anybody done this or any ideas how you get it to go past more than the initial page?
View Replies
View Related
I need the ASP/xml page to send the Request to the share point portal server (Webdav) using XMLHTTP and i also need to parse the response xml into HTML.If any body knows about.
It might contais mainly three files one is Search page where user can type his requirements , second one contains sending XMLHTTP request to the Share Point Portal server and third one contains the Parse xml response into HTML format.
View Replies
View Related
Why do sites dragged in through XMLHTTP only download half or so of the images associated with the site?
View Replies
View Related
Up to this point, i've been able to extract the search results from a site. Form -> Results chain.
However, on a new project im on, im a little stuck, and not sure if it is at all possible. The next page im trying to get info from there's a chain of 3 pages. so Form -> Middle -> Results.
I've tried inputting my own form data, but i get the page info from the Middle link, and not the Results link. Any ideas how i can go on to the Results link?
At the moment i dont think it's possible, but i haven't been in this game for long.
View Replies
View Related
I'm using XMLHTTP to perform a simple screen scraping job.
When I try to have it "scrape" lines with embeded CSS declarations, it
renders them incorrectly, stripping the leading period. Consequently, my CSS
doesn't work.Here's how I'm calling it, but I don't think my implementation is the
problem.
Dim srvXmlHttp
Set srvXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
srvXmlHttp.open "GET", TearURL, false
srvXmlHttp.send()
If srvXmlHttp.status <> 200 Then
Response.Write "No Server Response"
Response.End
End If
Dim strRetval5
strRetval5 = srvXmlHttp.responseText
View Replies
View Related
I have a peculiar problem using the method
Server.CreateObject("MSXML2.ServerXMLHTTP") in order to get a connection
from one server to another.
On my personal host (IIS) the above method works perfect, and I can 'include' an HTTP stream from a remote URL into my own page. However, the method doesn't work on another webserver (IIS, too) although the MSXML2.ServerXMLHTPP method is installed (I checked it).
The error message I get there is:
msxml3.dll error '80072ee2' The operation timed out
This error does only appear if I try to get data from a remote URL, if I try to get data from http://localhost/foo, the method works - I believe the webserver is behind a proxy. Would this cause any problems? And if so, how can it be solved?
- Do you guys know of any other solution how to 'emulate' the php
include command in ASP without using the MSXML2.ServerXMLHTTP method?
View Replies
View Related
Shown below is ASP Code sample that tries to access a method,CreateUser in the server called, "http://smallbutsmart.basis.com.au" using the protocol,XMLHTTP. Can you explain to me why this Code does not work and showing the correct Code Sample?
<%
dim objXMLHTTP
set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "Post", "http://smallbutsmart.basis.com.au", false
'objXMLHTTP.SetRequestHeader "Content-type", "text/html"
'objXMLHTTP.CreateUser "abc","123","Scriven","1","001","qms"
objXMLHTTP.Send
%>
View Replies
View Related
I've been searching everywhere online to find an alternative method besides
using Microsoft.XMLHTTP (as it freezes the server up alot!!) but with no luck
at all.
I am using server side ASP, and some said to use Microsoft.ServerXMLHTTP
instead. However I have tried that as well and it still freezes up the whole
thing (i.e. the site just keeps loading forever).
I tried to do a "on error resume next" clause to catch the error but still
doesn't stop the page being freezing up.. :(
I saw someone here said don't use XMLHTTP in ASP as it is not thread safe
(is that why it is freezing up??), and suggest to use
MSXML2.ServerXMLHTTP.3.0.
so do anyone know if MSXML2.ServerXMLHTTP.3.0 will help? i.e. not freezing
up the page?
View Replies
View Related
when we get info from an url with xmlhtttp or xml server http how it
behaves. how bandwith it uses or how it adjust the bandwith which it use...
how can it use all the bandwith.. any promramme or any windows adjusment
...are there possible solutions.. for example how the flash get use all the
bandwith when we separate from the whole part a file to lots of part
View Replies
View Related
Is this the correct newsgroup for this posting?
I have a problem when using these lines of code:
Dim xmlhttp as Object
set xmlhttp = CreateObject("Microsoft.XMLHTTP")
Call xmlhttp.Open("GET", Application.Profiles.ActiveProfile.Server &
"/Test.abc", False):
Call xmlhttp.send("");
when the last line of code is executed, i get the following error message:
"The download of the specified resource has failed. -2146697208"
Application.Profiles.ActiveProfile.Server = http://x.x.x.x/virtualdirectory
View Replies
View Related
I have a question regarding async mode for calling Microsoft.XMLHTTP object.
Microsoft.XMLHTTP hangs the IE once in a while suddenly, but it will work
again after half an hour or so without doing anything. I have searched
through the Internet and seems like the reason it hangs the browser it's
because XMLHTTP limits you to two concurrent HTTP connections to each remote
host; so if more than 2 concurrent connections strike the script which is
calling XMLHTTP, it will hang. Is that true?
If that the case, can I change async mode to true (async=true) so that it
will only take one connection at a time, meanwhile other concurrent
connections will loop and wait till XMLHTTP is ready to process data again.
Will that work?
View Replies
View Related
My XMLHTTP request code ran fine then all the sudden I get:
An exception occurred: 'xml.Send'
When i reset IIS it works fine again (for awhile)....
Does anybody know what is causing this problem and how to stop/fix it???
View Replies
View Related