rami
0
Hallo HaBo-User!
Ich arbeite derzeit an einem Client für ein Bilderuploadportal (ja, ich habe die Genehmigung des Inhabers). Programmiersprachenunabhängig stehe ich jetzt vor einem Problem: Wie sende ich (meine Sprache ist PHP) ein Bild per HTTP?
Ein normaler Request wäre ja:
Wenn ich jetzt einen Upload mit einem billigen HTTP-Sniffer scanne (in Wireshark blick ich nicht durch), sehe ich nur das:
Wie kann ich nun eine Datei per HTTP senden? Kennt sich da jemand aus? Irgendwie mit dem "boundary" trennen - aber wie?
Ich arbeite derzeit an einem Client für ein Bilderuploadportal (ja, ich habe die Genehmigung des Inhabers). Programmiersprachenunabhängig stehe ich jetzt vor einem Problem: Wie sende ich (meine Sprache ist PHP) ein Bild per HTTP?
Ein normaler Request wäre ja:
Code:
POST /upload.php HTTP/1.1\r\n
User-Agent: ramis WishuLoad-Client\r\n
Host: wishuload.de\r\n
Accept: */*\r\n
Connection: Close\r\n\r\n
Code:
POST /upload.php HTTP/1.1
User-Agent: Opera/9.62 (Windows NT 5.1; U; de) Presto/2.1.1
Host: wishuload.de
Accept: application/xhtml+voice+xml;version=1.2, application/x-xhtml+voice+xml;version=1.2, text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: de,en;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Expect: 100-continue
Referer: http://wishuload.de/
Cookie: ***
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
Content-Length: 43408
Content-Type: multipart/form-data; boundary=----------x1WrzVWCMQv1XDoU0bsWj6
HTTP/1.1 100 Continue