http post

yqyq22 yqyq22 at hotmail.com
Fri May 28 11:28:45 EDT 2010


On May 28, 5:24 pm, christian schulze <xcr... at googlemail.com> wrote:
> On 28 Mai, 17:20, yqyq22 <yqy... at hotmail.com> wrote:
>
>
>
>
>
> > On May 28, 5:17 pm, christian schulze <xcr... at googlemail.com> wrote:
>
> > > On 28 Mai, 16:47, yqyq22 <yqy... at 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.- Hide quoted text -
>
> > > - Show quoted text -
>
> > If i understood right i would use only socket.. is it possible?
> > thanks
>
> Yeah i think so, but i am not quite sure. Just test it :)- Hide quoted text -
>
> - Show quoted text -

Do u have an example/link "closed" to my need? thanks



More information about the Python-list mailing list