Results 1 to 5 of 5

Thread: Please help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Guayaquil, Guayas, Ecuador
    Posts
    87

    Question

    Hi i want to extract some imformation that is in a web page that is in cgi.
    The way i'm doing is accessing the page with the webbrowser control and extracting the code and filtering.
    It works well but some pages when you enter it open others web pages in external browsers.
    I try with inet control but it doesn't extract the hole code (i think it is because the page is in cgi and it have java scripts).
    Does anyone know how to do this and not alowing that browsers to be oppened??

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Boulder, Colorado, USA
    Posts
    325
    It would be helpful if you re-phrase the question. I'm not clear on what you are trying to do, and what isn't working.

    -Shickadance

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Guayaquil, Guayas, Ecuador
    Posts
    87
    I want to access a web page and use its source code to find some strings.
    BUT some web pages open another pages in other web browsers.
    And i don't want my program to open a web browser.
    Sorry for my english

  4. #4
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Boulder, Colorado, USA
    Posts
    325
    ok, I think I understand what you are saying =)

    ok, you are using MS Internet Transfer Control (Inet)

    and you just want to read the source html and parse it, extracting data.

    so, do something like this:

    ex.
    Code:
    Sub GetHTMLFile()
      
      Dim buffer as String
      
      Inet.AccessType = icDirect
      Inet.Protocol = icHTTP
      
      buffer = Inet.OpenURL("http://www.somewhere.com/index.html", icString)
      
      '' not sure if this is needed
      '' this was from some old code
      Do: DoEvents: Loop Until (Not Inet.StillExecuting)
    End Sub
    buffer String should now contain the whole index.html file

    Is this what you want?
    -Shickadance

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    Guayaquil, Guayas, Ecuador
    Posts
    87

    That doesn't work

    That doesn't work
    I think that inet only work with html.
    The page that i'm trying to acces is something like:

    http://www.domainname.com/cgi-bin/test.cgi?antoniobegue

    So that is why i used the webbrouser control but the webbrowser control open other ie windows

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