curl-users
Re: problem in posting forms with option -F............can anyone plz help
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 5 Jul 2005 15:41:28 +0200 (CEST)
Date: Tue, 5 Jul 2005 15:41:28 +0200 (CEST)
On Tue, 5 Jul 2005, Usha wrote:
> #curl -F "action=invokeOp"
...
> http://myhost/jmx-console/HtmlAdaptor?action=inspectMBean\&name=jboss%3Aservice%3DJNDIView -
> O
...
> <FORM action=HtmlAdaptor method=post>
1) The URL in your command line is incorrect. The tag says
"action=HtmlAdaptor" so you should cut off everything from the ? and beyond.
2) This form is a "plain" POST and not a multipart one so using -F is wrong.
You should use -d instead.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-07-05