Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grabbing a page from another webserver 1

Status
Not open for further replies.

Rydel

Programmer
Feb 5, 2001
376
CZ
How can I get an HTML page from another webserver and store it in a local ASP variable for further process and analysis? E.g. the ASP script will be on while the page I will be grabbing will be somewhere on How can this be done? I've searched through this forum but could not find anything related...



regards,
rydel n23
 
good question. Try the vbscript forum too maybe? (forum329)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Hm.... Well, why should I ask it there? There are more gurus there? Because, logically the question belongs here to this forum. It's all about ASP, not VBScript (because I could be writing in JScript for all that matters; and VBScript is a language, not a platform, not a webserver).

regards,
rydel n23
 
Here it is an example

Dim objXmlHttp, url
Set objXmlHttp = Server.CreateObject ("Msxml2.XMLHTTP")
url = "objXmlHttp.Open "GET", url, False
objXmlHttp.Send
Response.Write objXmlHttp.ResponseText


________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top