On 28 Mai, 16:47, yqyq22 <yqy...@hotmail.com> wrote: > Hy, i would like to create a little script to reproduce this one > below: > Do you have suggestion? > > POST /folder/path/upload.exe?/dir HTTP/1.1 > Host: 192.168.100.1:8080 > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: > 1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729) > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ > *;q=0.8 > Accept-Language: en-us,en;q=0.5 > Accept-Encoding: gzip,deflate > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive: 115 > Proxy-Connection: keep-alive > Referer:http://192.168.1.100:8080/dir1 > Content-Type: multipart/form-data; > boundary=---------------------------7075104567331 > Content-Length: 539 > Connection: close > > -----------------------------7075104567331 > Content-Disposition: form-data; name="F1"; filename="file.txt" > Content-Type: application/octet-stream > > -----------------------------7075104567331 > Content-Disposition: form-data; name="p4" > > -----------------------------7075104567331-- > > THANKS A LOT
Just send it via a socket? Or use urllib, afair you can send custom HTTP headers. -- http://mail.python.org/mailman/listinfo/python-list