differences between curl command line and firefox address bar ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lots
    New Member
    • Mar 2007
    • 1

    #1

    differences between curl command line and firefox address bar ?

    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
    Last edited by drhowarddrfine; Mar 17 '07, 04:12 PM. Reason: Changed "looses" to "lose" so we can understand it.
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    I don't think this is an HTML question. Let me dig up one of our members who knows curl.

    Comment

    • michaelb
      Recognized Expert Contributor
      • Nov 2006
      • 534

      #3
      I wonder how curl -d "id=13" target.php would work for you.

      Comment

      Working...