Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 20th, 2005, 12:49 PM   #1
codetaino
Programmer
 
codetaino's Avatar
 
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4 codetaino is on a distinguished road
How do i download a web page source code using vb?

I need to be able to read a web page source code, to extract information from it.

I know how to do this in other languages... but for some reasons (probably my lack of knowledge in VB) i cant even find a web page on google that have the answer... if someone can give me some code or point me in the right direction maybe telling me which function or object is used... i would be greatly thankfull...

-codetaino
__________________
"God bless u all" :)
codetaino is offline   Reply With Quote
Old May 20th, 2005, 1:16 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Look up socket programm in VB.. the basic concept is this.

Example (Using http://mysite.com/index.html)
 1) Open socket connction to mysite.com on port 80
 2) Send get request packet...
     2a) GET /index.html HTTP/1.1
 3) Get the response on the socket from the server (put in response variable)...
 4) Strip headers from response...
 5) Close socket conneciton...
 6) Resulting response variable is source code

I used google to find this, it might be of some use...
http://www.freevbcode.com/ShowCode.asp?ID=2024
__________________

tempest is offline   Reply With Quote
Old May 20th, 2005, 5:11 PM   #3
codetaino
Programmer
 
codetaino's Avatar
 
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4 codetaino is on a distinguished road
thanks for all your help... i have found some web sites... and check the one you sugested... I really appreciate your help
__________________
"God bless u all" :)
codetaino is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:04 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC