curl: a simple & strange problem !!!!! plz help me

Discussion in 'Sick Plants and Problems' started by wickietetsu, Jul 16, 2010.

  1. hi
    there are a hidden in a post script such as this:

    <form method="POST" >
    <input type="text" name="test1">
    <input type="hidden" name="test2" value="example123==">
    <input type="submit" value="go">
    </form>

    so
    in curl:
    curl_setopt($ch, CURLOPT_POSTFIELDS, "test1=sss&test2=example123=="); // Pass form Fields.

    and this is wrong ! :eek:
    because in end of hidden value there is "==" ;
    so how can i solve this problem?!:confused:

    thanks 4 your help.:)
     
  2. Maybe it would work like:

    curl_setopt($ch, CURLOPT_POSTFIELDS, urlencode("test1=sss&test2=example123==")); // Pass form Fields.

    But isnt this the wrong place to ask that? D:
     

Share This Page