Results 1 to 8 of 8

Thread: getting html through winsock

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    getting html through winsock

    I am trying to use winsock to get an html page. I'm able to get something with the code below, but i'm receiving header information as well. How do I do this properly.

    Code:
       'ws (winsock object) is declared and instantiated outside as a global
            Dim bt() As Byte 
            bt = System.Text.ASCIIEncoding.ASCII.GetBytes("GET / HTTP/1.1" & Chr(10) & Chr(13) & Chr(10) & Chr(13))
            Dim x As Integer = 1
    
            ws.SendData(bt)
    Note: I know other ways to get webpages, I just want to learn how to do it using winsock.
    Last edited by benmartin101; Mar 6th, 2007 at 05:51 PM.

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