Apres la connection au serveur (pas de probleme sur ce point là), je tente de faire:
Winsock.SendData ("GET" + Page + " " + "HTTP/1.1" + vbCrLf + "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*" + vbCrLf + "Referer: " + Referer + vbCrLf + "Accept-Language: fr" + vbCrLf + "Content-Type: application/x-www-form-urlencoded" + vbCrLf + "Accept -Encoding: gzip , deflate" + vbCrLf + "User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)" + vbCrLf + "Host: " + Host + vbLf + vbCrLf)
Avec:
Page = "http://www.google.fr/" 'page a charger
Referer = "http://www.yahoo.fr/" 'référant
Host = "www.google.fr" 'Hote
Google me renvoie:
<HTML><HEAD><TITLE>400 Bad Request</TITLE></HEAD>
<BODY><H1>400 Bad Request</H1>
Your client has issued a malformed or illegal request.
</BODY></HTML>
Quelqu'un peut m'aider?