En gros la requete pour envoyer les données c'est ca:
POST /index.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-gsarcade-launch, */*
Referer: http://www.imagehotel.net/index.php
Accept-Language: fr
Content-Type: multipart/form-data; boundary=---------------------------7d531c37110584
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Host: www.imagehotel.net
Content-Length: 57911
Connection: Keep-Alive
Cache-Control: no-cache
-----------------------------7d531c37110584
Content-Disposition: form-data; name="img";
filename="D:\Photos\30-10-05 Partie
dunkerque\Moi\2005-10-30_-_PartieTASAK-GPBL-GAT_031.jpg"
Content-Type: image/pjpeg
ÿØÿà
Reste plus qu'à savoir comment générer les données à la fin à partir du
fichier, je crois que c'est comme pour le SMTP j'ai déjà fait mais faut
que je me souvienne ...
|