curl-users
Re: curl --form problem
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.htmlReceived on 2004-05-10