Results 1 to 3 of 3

Thread: how to get the source code of a page using the winsock control?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849

    how to get the source code of a page using the winsock control?

    hello,

    how can I get the source code of a page using the winsock control?

    and will it be effective?

    thanks

    Dekel C.

  2. #2

  3. #3
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    DO so like this here........
    VB Code:
    1. Winsock1.Connect "www.google.com", 80
    2.  
    3.  
    4. Private Sub Winsock1_Connect()
    5.   SendData "GET www.google.com HTTP/1.1" _
    6.   & VbCrLf & "Host: google.com" _
    7.   & VbCrLf & "Accept: */*" & VbCrLf & VbCrLf
    8. End sub

    Then just do your receive data right and you should get it all.

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