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.
Note: I know other ways to get webpages, I just want to learn how to do it using winsock.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)




Reply With Quote