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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fopen($url,"r")

Status
Not open for further replies.

BDC2

Programmer
Mar 14, 2002
435
GB
Can anyone tell me if ASP has any kind of similar functionality to PHP's fopen, when getting a URL?

BDC.
 
From memory you can do something relating to creating a GET request, and then just parse the reply into a string, which would result in the same thing.

Have a look at the HTTP objects available and/or the Request objects I think.

HTH

Beau
 
NO idea
ask in the Microsoft: Active Server Pages forum


Regards,

Namida
 
url="link?id=1"
id1=request.querystring("id")
'id1 is equated to 1

Known is handfull, Unknown is worldfull
 
use the file scripting object, u can get a better idea of it in the ASP forum...

Known is handfull, Unknown is worldfull
 
The file system object will give me all ASP content, I need it server through HTTP so I only get the resulting HTML.

The link I supplied solved my problem, I used

Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", URL, false
objXMLHTTP.Send

Which works a treat, thanks for you replies.

BDC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top