![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4
![]() |
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" :) |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
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 codeI used google to find this, it might be of some use... http://www.freevbcode.com/ShowCode.asp?ID=2024
__________________
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4
![]() |
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" :) |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|