cURL / Mailing Lists / curl-users / Single Mail

curl-users

Post with <select multiple>

From: Ide, Jim <jide_at_lgb-inc.com>
Date: Fri, 13 Apr 2001 15:24:30 -0400

According to:
http://curl.haxx.se/docs/httpscripting.shtml

<form method="POST" action="junk.cgi">
<input type=text name="birthyear">
<input type=submit name=press value="OK">
</form>

And to use curl to post this form with the same data filled in as before, we
could do it like:

curl -d "birthyear=1905&press=OK" www.hotmail.com/when/junk.cgi

If I change the form to:

<form method="POST" action="junk.cgi">
<input type=text name="name">
<input type=select name="city" multiple>
<option>London
<option>Rome
<option>Paris
<option>New York
<option>Tokyo
<option>Toronto
</select>
<input type=submit name=press value="OK">
</form>

What do I put in -d to send multiple values (for example London, Rome, and
Tokyo) to the form?

Thanks,
Jim
Received on 2001-04-13