cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Newlines in multipart/form-data post

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 22 Apr 2004 08:18:25 +0200 (CEST)

On Thu, 22 Apr 2004, Robert Marlow wrote:

> I'm writing a script using curl (the executable). The script uses a
> multipart/form-data post and has several fields it needs to submit. A few of
> the fields have values which take up several lines. I've noticed only the
> first lines of these multi-line values are getting submitted.

Can you show us the exact command line and some test files that make this
happen for you? The formpost code in curl doesn't care about newlines, it adds
whatever you tell it to.

> Is there any way I can avoid this happening and get all lines submitting
> with newlines included? I'm using curl 7.9.5.

That curl version is more than two years old. We've fixed hundreds of bugs,
added thousands of lines source code and added dozens of features since that
was released.

Please upgrade and check if a recent release doesn't fix your problems.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-22