Hi there
Is there a way to read a remote page line by line?
regards
Jeremy
| SitePoint Sponsor |
Hi there
Is there a way to read a remote page line by line?
regards
Jeremy
You can read a remote page using :
http://classicasp.aspfaq.com/general...-web-page.html
to read it line by line, you put the response to an array and process line by line.
it doesnt show how to read line by line
can you show some code, how far have you got to ?
you can try this:
Code:<% Dim url,strArr,xmlhttp,lineno url = "http://127.0.0.1/lines.txt" set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.send "" 'Response.write xmlhttp.responseText strArr = split(xmlhttp.responseText,vbcrlf) set xmlhttp = nothing for lineno=0 to ubound(strArr) Response.Write "Line"&lineno+1&" :"&strArr(lineno)&"<br>" next %>
It worked thank you
Bookmarks