open and read any distant web page

Results 1 to 2 of 2

Thread: open and read any distant web page

  1. #1
    Join Date
    Dec 1969

    Default open and read any distant web page

    Hi!<BR>I try to make an application which will be able to open a distant web page and get the information from that page.(for example I would like to read line by line the info from (I have the accescode or password))<BR>I tried this:<BR>&#060;%<BR>Set fs=Server.CreateObject("Scripting.FileSystemObject ")<BR><BR>Set f=fs.OpenTextFile(Server.MapPath("test.txt"), 1)<BR>f.Skip(4)<BR>Response.Write(f.ReadAll)<BR>f. Close<BR><BR>Set f=Nothing<BR>Set fs=Nothing<BR>%&#062;<BR><BR>this workes, but, if I put for the path a it wont work.<BR><BR>I found something like this too:<BR>Set HttpObj = Server.CreateObject("AspHTTP.Conn") <BR>HttpObj.Url = ""<BR><BR>but I couldn&#039;t use it.<BR>Please help<BR>Katie

  2. #2
    Join Date
    Dec 1969

    Default You can't use..

    .. the FileSystemObject to open a URL.<BR><BR>Look into the MSXML2.ServerXMLHTTP object. It&#039;ll do what you need.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts