|
-
Apr 14th, 2000, 06:44 AM
#1
Thread Starter
Lively Member
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??
-
Apr 14th, 2000, 06:52 AM
#2
Hyperactive Member
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.
-
Apr 14th, 2000, 06:56 AM
#3
Thread Starter
Lively Member
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
-
Apr 14th, 2000, 09:19 AM
#4
Hyperactive Member
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?
-
Apr 14th, 2000, 01:16 PM
#5
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|