By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,085 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

differences between curl command line and firefox address bar ?

P: 1
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=13

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
Mar 16 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 1,892
I don't think this is an HTML question. Let me dig up one of our members who knows curl.
Mar 17 '07 #2

Expert 100+
P: 534
I wonder how curl -d "id=13" target.php would work for you.
Mar 17 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.