Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Feature Requests-554830 ] set boundary string in formposts

From: <>
Date: Tue, 22 May 2007 14:14:10 -0700

Feature Requests item #554830, was opened at 2002-05-11 06:05
Message generated for change (Comment added) made by nobody
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: upload
Status: Closed
Resolution: Rejected
Priority: 6
Private: No
Submitted By: Helder De Pauw (helderdp)
Assigned to: Daniel Stenberg (bagder)
Summary: set boundary string in formposts

Initial Comment:
Could it be handy to include a

a) CURLOPT_SETBOUNDARY function to specific set the
boundary field in multipart/form-data posts,
b) CURLOPT_CONTENTLENGTH function to manually set the
content length of headers.

Just a tought ...


Comment By: Nobody/Anonymous (nobody)
Date: 2007-05-22 14:14

Logged In: NO

I could really use CURLOPT_SETBOUNDARY right about now. This is exactly
what I need to do.


Comment By: Mark Rowlinson (rowlinm)
Date: 2003-01-09 10:00

Logged In: YES

Previously submitted as &quot;Problem&quot; 663990:

Badly coded CGIs migh require the abaility to force the
boundary setting - scenario below ..

Using curl 7.10.2
Current tests are on Cygwin but when working will move to
Note: Not a curl problem but curl could &quot;resolve&quot; it.

Trying to automate a POST of data to a site that will examine
the file posted and return an analysis of the contents.

The CGI returns an error as the Boundary being used doesn't
have some of the data it &quot;expects&quot;, this is obviously an error
in the CGI as it's not adhering to the boundary standards. The
problem is I have no control over the code being executed in
the CGI.

The data sent using the HTML form has been compared to
the data sent using curl and changing the Boundary data
resolves the problem (in this example we added 8 &quot;-&quot;
characters on the front).

Basically, I'm saying a big YES to feature request 554830
(May 2002 -;atid=350976&amp;aid=5
54830&amp;group_id=976), if it can be implemented as an option
on the curl command.


Comment By: Nobody/Anonymous (nobody)
Date: 2002-05-12 19:35

Logged In: NO

maybe some day, there will be webservers who check the
boundary data to see if there isn't curl in it (like it
does has now).... Just a tought to make it possible to
manual override it ...


Comment By: Daniel Stenberg (bagder)
Date: 2002-05-12 08:18

Logged In: YES

Thanks for your suggestions.

What would the purpose of a) be?

&quot;the content length of headers&quot; ? We don't set the content
length of headers. Do you mean you want to set the
Content-Length header? That should already be possible...


You can respond by visiting:
Received on 2007-05-22

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET