cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Please help me to make request

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 1 Apr 2010 20:30:33 +0200 (CEST)

On Thu, 1 Apr 2010, elvis wrote:

> <form action="/cgi-bin/ConfigManApp.com" method="post"
> encType="multipart/form-data">
> <table width="700" height="30" border="0" align="center" cellpadding="0"
> cellspacing="0" id="table_logo" style="display:none" >
> <input type="hidden" name="PAGEID" value="6">
> <input name="Upload_LOG" type=file size="25">
> <input onClick="AddLog()" type="button" value="Upload" name="addlog"
> style="width:80px">
>
> curl -u adn:adn -F Upload_LOG=@pin.ob
> "http://192.168.0.168/cgi-bin/Config.com"

> but how can I add to this request hidden value like in another
> Content-Disposition

Just add another -F:

curl -u adn:adn -F Upload_LOG=@pin.ob -F PAGEID=6 [URL]

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-01