cURL / Mailing Lists / curl-users / Single Mail

curl-users

problem in posting forms with option -F............can anyone plz help

From: Usha <mailto_karkil_at_hotpop.com>
Date: Tue, 5 Jul 2005 18:54:55 +0530

Hi list,

Im trying to post the following form using the curl options:

#curl -F "action=invokeOp" -F "name=jboss:service=JNDIView" -F
"methodIndex=0" -F "arg0=
True"
http://myhost/jmx-console/HtmlAdaptor?action=inspectMBean\&name=jboss%3Aservice%3DJNDIView -
O

but it does'nt work for me. Can anyone one plz suggest me what is missing in
the above command. The form looks as:

<FORM action=HtmlAdaptor method=post><INPUT type=hidden value=invokeOp
name=action> <INPUT type=hidden value=jboss:service=JNDIView name=name>
<INPUT
type=hidden value=0 name=methodIndex>
<HR align=left width=80>

<H4>java.lang.String list()</H4>
<P>Output JNDI info as text</P>
<TABLE cellSpacing=2 cellPadding=2 border=1>
  <TBODY>
  <TR class=OperationHeader>
    <TH>Param</TH>
    <TH>ParamType</TH>
    <TH>ParamValue</TH>
    <TH>ParamDescription</TH></TR>
  <TR>
    <TD>verbose</TD>
    <TD>boolean</TD>
    <TD><INPUT type=radio CHECKED value=True name=arg0>True <INPUT
type=radio
      value=False name=arg0>False </TD>
    <TD>If true, list the class of each object in addition to its
  name</TD></TR></TBODY></TABLE><INPUT type=submit value=Invoke> </FORM>

Thanks
Usha
Received on 2005-07-05