curl-library
Re[2]: post question
Date: Wed, 11 Jun 2003 18:35:03 +0200
> Post from cgi script? Can you elaborate on this?
Sorry, Im not a know it all on this stuff so if I say somehting wrong
forgive me. I guess what I meant is that I hit a page that has a perl
form, and then the browser I am using posts the data. My test form for
example has 100 fields called foo<0-99> and i stuck in mathcing values
foo<0-99>. I did a dump with ettercap and got:
9:29:50 172.21.0.122:4677 --> 172.21.0.155:80
POST /cgi-bin/form.pl HTTP/1.1.
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, application/x-shockwave-flash,
application/vnd.ms-excel, application/vnd.ms-powerpoint, */*.
Referer: http://172.21.0.155/cgi-bin/form.pl.
Accept-Language: en-us.
Content-Type: application/x-www-form-urlencoded.
Accept-Encoding: gzip, deflate.
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1).
Host: 172.21.0.155.
Content-Length: 1190.
Connection: Keep-Alive.
Cache-Control: no-cache.
Authorization: Basic am9lbDpmb29iYXI=.
09:29:50 172.21.0.155:80 --> 172.21.0.122:4677
09:29:50 172.21.0.122:4677 --> 172.21.0.155:80
foo1=foo1&foo2=foo2&foo3=foo3&foo4=foo4&foo5=foo5&foo6=foo6&foo7=foo7&foo8=foo8&foo9=foo9
So is it that the browser IE is not following the RFC1867 standard?Or am
I missing the point here?
Paco
Daniel Stenberg <daniel_at_haxx.se> wrote:
>On Wed, 11 Jun 2003, Paul Accosta wrote:
>
> > I have a function that posts very large amounts of data to a server.
> > Everything works great but I noticed that for every post the term
> > "Content-Disposition" preceeds it.
>
> You mean for every part of the post there's a Content-Disposition:
> header?
> And yes, there is, as that's how they are supposed to be done! ;-)
>
> > Ive notice with some of my other post from a cgi script do not add
> this in
> > front of every post.
>
>
> And they're not "in front of" any posts. They're part of the post meta
> data.
>
> > No having the extra words would reduce bandwidth considerably.
>
> ... and break RFC1867 compliance, iirc.
>
> > I could not see a way to set this with the options so I was
wondering
> if
> > anyone has any input.
>
> Correct, but if you can tell me how the posts are done without that
> header,
> we can add a mechanism to remove it. Until then it stays as we need to
> send
> proper formatted posts.
>
> --
> Daniel Stenberg -- curl: been grokking URLs since 1998
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
>
>
>
---------------------------------------
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-11