hello, how can I get the source code of a page using the winsock control? and will it be effective? thanks
Dekel C.
found this, http://www.vbip.com/winsock/winsock_http_02_01.asp
Resource file basics A Faster way to search a file.. Asynchronous download VB.NET vs C# VB.NET vs C#
DO so like this here........ VB Code: Winsock1.Connect "www.google.com", 80 Private Sub Winsock1_Connect() SendData "GET www.google.com HTTP/1.1" _ & VbCrLf & "Host: google.com" _ & VbCrLf & "Accept: */*" & VbCrLf & VbCrLf End sub Then just do your receive data right and you should get it all.
Winsock1.Connect "www.google.com", 80 Private Sub Winsock1_Connect() SendData "GET www.google.com HTTP/1.1" _ & VbCrLf & "Host: google.com" _ & VbCrLf & "Accept: */*" & VbCrLf & VbCrLf End sub
Forum Rules