cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: '/' in multipart boundary

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 6 Mar 2014 10:29:05 +0100 (CET)

On Wed, 5 Mar 2014, Tim Bornholtz wrote:

> I'm using an older version of curl on aix: curl 7.9.3
> (powerpc-ibm-aix5.3.0.0) libcurl 7.9.3 (OpenSSL 0.9.8y) (ipv6 enabled)

Wow.

Just wow.

That version is over 12 years old.

> I'm sending a file to a web service with the command (filenames changed):
>
> curl -F pdf=@source.xml http://mylocalserver > output.xml
>
> Ever once in a while the process fails and in my server I see a message
> about a strange multipart form data boundary:
>
> Throwable occurred: javax.ws.rs.WebApplicationException:
> java.lang.IllegalArgumentException: Error parsing media type
> 'multipart/form-data; boundary=curlLkEd+qkq6RFQZC8Xbr/OKsgSOEG'

The slash was removed from table of possible letters to use in the boundary
separator in curl version 7.9.6. Released in April 2002.

> I'm going to recommend that they upgrade to the latest version available
> from here: http://curl.haxx.se/download.html but even then those versions
> for AIX are many versions behind current.

Then build your own version instead. It is easy and straight forward!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-06