cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1766458 ] --form type= parameter isn't sent

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 02 Aug 2007 14:39:20 -0700

Bugs item #1766458, was opened at 2007-08-02 14:39
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1766458&group_id=976

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: client module
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Matt Pulver (pulver)
Assigned to: Daniel Stenberg (bagder)
Summary: --form type= parameter isn't sent

Initial Comment:
Using version 7.16.4 of curl:

/var/tmp/curl-7.16.4/src/curl -F "order=@input.xml;type=application/xml" http://localhost/

produces the following in the logs on the localhost server:

SERVER_NAME: localhost
PATH_INFO: /
CONTENT_LENGTH: "1967"
HTTP_CONTENT_TYPE: multipart/form-data; boundary=----------------------------9ab4290e7a8a
HTTP_USER_AGENT: curl/7.16.4 (i686-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.8
SCRIPT_NAME: /
SERVER_PROTOCOL: HTTP/1.1
HTTP_HOST: localhost
REMOTE_ADDR: 10.0.0.10
SERVER_SOFTWARE: Mongrel 1.0.1
HTTP_CONTENT_LENGTH: "1967"
REQUEST_PATH: /
CONTENT_TYPE: multipart/form-data; boundary=----------------------------9ab4290e7a8a
HTTP_VERSION: HTTP/1.1
REQUEST_URI: /
SERVER_PORT: "80"
GATEWAY_INTERFACE: CGI/1.2
HTTP_EXPECT: 100-continue
HTTP_ACCEPT: "*/*"
REQUEST_METHOD: POST

Note the content-type begins with multipart/form-data. This should be application/xml as given by the type parameter to --form.

Version info:

$ /var/tmp/curl-7.16.4/src/curl -V
curl 7.16.4 (i686-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.8
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IDN Largefile NTLM SSL libz

Matt

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1766458&group_id=976
Received on 2007-08-02

These mail archives are generated by hypermail.

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

File upload with ASP.NET