Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_ado_rds thread: reading a URL with Stream


Message #1 by debdas@t... on Thu, 12 Jul 2001 04:55:37
can anyone help me debug this or give somethin else



requirement : connecting to a URL with ADO 2.5 Record and Stream :

              trying to read the output of x.asp 





    Dim strResult

    Dim rec As New ADODB.Record

    rec.Open "x.asp", "URL=http://10.1.10.231/root/"



    Dim objStream As ADODB.Stream

*    objStream.Open rec, adModeRead, adOpenStreamFromRecord

    objStream.Charset = "ascii"

    strResult = objStream.ReadText

    objStream.Close

    Set objStream = Nothing



    response.write strResult



* runtime error





Thanks in advance.

Please reply soon . will be grateful




  Return to Index