cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: curl --form problem

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 10 May 2004 10:29:06 +0200 (CEST)

On Mon, 10 May 2004, Luca Arzeni wrote:

> I tempted also with the http clear text (no SSL) invocation, following the
> hint that some users gave me:
>
> curl --form "INPUT_XML=<somefile.xml"
> http://localhost:8080/CWS/GPGAuthentication/ServiceManager
>
> and I actually tested the it does NOT works; so I'm sure that the problem is
> not in the protocol, but in curl.

What makes you say this? How do you expect this to send the data and in what
way does curl fail to do so? I syggest you try --trace or --trace-ascii to get
a full dump of exact what bytes curl sends/receives.

> Just to be sure I tested:
>
> curl --data "INPUT_XML=sometext"
> http://localhost:8080/CWS/GPGAuthentication/ServiceManager
>
> And this time the system works fine.

So why are you using --form when --data is what you want?

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET