Hi everyone,
I've been trying for a while to post a form on a website using curl... Many pages work, but one in particular seems to lose a select value...
<form action="target. php" method='post'>
<select name="id">
<option value='13' selected>A </option>
<option value='24'>B </option>
</select>
<input type="submit" value="Change">
</form>
Unless it's POST, the target page seems flexible to GET as well, since typing "target.php?id= 13" produces the right behaviour...
However, if I do
curl -F "id=13" target.php
or
curl target.php?id=1 3
I get a different behaviour, that shows that the id is not set right...
Do you have any idea on what could differ ? I don't think it's related to cookies, since I already have them set (and working for the rest of the site) in the real command line...
Thanks,
lots
I've been trying for a while to post a form on a website using curl... Many pages work, but one in particular seems to lose a select value...
<form action="target. php" method='post'>
<select name="id">
<option value='13' selected>A </option>
<option value='24'>B </option>
</select>
<input type="submit" value="Change">
</form>
Unless it's POST, the target page seems flexible to GET as well, since typing "target.php?id= 13" produces the right behaviour...
However, if I do
curl -F "id=13" target.php
or
curl target.php?id=1 3
I get a different behaviour, that shows that the id is not set right...
Do you have any idea on what could differ ? I don't think it's related to cookies, since I already have them set (and working for the rest of the site) in the real command line...
Thanks,
lots
Comment