cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Content-Disposition headers

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 10 Mar 2007 21:37:56 +0100 (CET)

On Sat, 10 Mar 2007, Ed S. Peschko wrote:

> Also, it looks like the boundary is too long, and has too many '----' in it.
> The form that works looks like:
>
> Content-Type: multipart/form-data; boundary=xYzZY
>
> --xYzZY

The boundary strings curl uses mimic the ones IE sends or at least used to
send, to minimize the risk that you run into problems with stupid server side
scripts. If your server end has problems with this, it implies that script
won't work with IE.

> Anyways, these are the only differences in the curl send data (which doesn't
> work) and the perl send data (which does..). Any tips on customizing the
> curl forms so they exactly match the perl would be greatly appreciated..

The boundary string in curl is not customizable. The other part was answered
to by Dan F.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-03-10