Results 1 to 3 of 3

Thread: HTML Source

  1. #1
    Guest

    Question

    Code:
    Richtextbox1.text = Inet1.OpenURL("http://forums.vb-world.net")
    Anyone know why this only returns half of the html source code?

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Smile GetChunk Method

    I think you need to do a loop to retrieve all the data:

    Code:
    Dim ReturnStr As String
    RichTextBox1.Text = Inet1.OpenURL("http://forums.vb-world.net", icString)
    ReturnStr = Inet1.GetChunk(2048, icString)
    Do While Len(ReturnStr) <> 0
        DoEvents
        RichTextBox1.Text = RichTextBox1.Text & ReturnStr
        ReturnStr = Inet1.GetChunk(2048, icString)
    Loop

  3. #3
    Guest
    Read the source it returns for clues. Once I was returning a page that had a REDIRECTION in the following format:

    <META HTTP-EQUIV="REFRESH" CONTENT=

    Or it could be the GetChunk crap. I prefer Java for this sort of thing.

Posting Permissions

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



Click Here to Expand Forum to Full Width