curl-users
Re: Content-Disposition headers
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 10 Mar 2007 11:43:59 -0800
Date: Sat, 10 Mar 2007 11:43:59 -0800
On Sat, Mar 10, 2007 at 01:45:40AM -0800, Ed S. Peschko wrote:
> In short, I *think* the server is expecting a header that looks something like:
>
> Content-Disposition: form-data; name="PWFORM";
>
> wheras CURL is providing:
>
> Content-Disposition: form-data; name="PWFORM"; filename="postit1"
>
>
> So - first question, how do you disable the 'filename=' part of it? I tried:
>
> curl -F 'PWFORM=@/tmp/postit3;filename=/dev/null'
Try using < instead of @ in that line.
> Also, it looks like the boundary is too long, and has too many '----' in it.
> The form that works looks like:
That's unlikely. Remember, a boundary consists of two hyphens PLUS the
contents of the boundary= parameter.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2007-03-10