Does cURL needs variable knowledge ?

Discussion in 'PHP' started by priyakochin, May 19, 2007.

  1. #1
    I am in the way of cURL.But have some doubts.

    Does cURL needs the knowledge of variable used in the site to be posted ?

    Help !
     
    priyakochin, May 19, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    You need to know which variables you want or need to post. Posting random variables to a page does not make sense. I don't know what you're trying to do, but if you want to emulate a form, just look at the source code and see how the fields are called. Don't forget to add hidden fields as well.
     
    nico_swd, May 20, 2007 IP
  3. DeViAnThans3

    DeViAnThans3 Peon

    Messages:
    785
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You must know all the variables indeed, but like Nico told, you can simply extract them from the HTML code of the form you want to submit. I guess that are the variables you mean.
     
    DeViAnThans3, May 20, 2007 IP
  4. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oh can anyone plz give me a sample !
    I am just starting !
     
    priyakochin, May 20, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  6. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Any very basic tutorials !
     
    priyakochin, May 20, 2007 IP