php - Post data by curl dont work but html fine -
i in html :
<form action="address" method="post" id="login_form"> <input type="text" class="text-input captcha-input" id="captcha_input" name="captcha"/> <input class="button" type="submit" id="submit" value="sign in"> </form>
and fine in curl
$ch = curl_init( $url ); curl_setopt( $ch, curlopt_post, 1); curl_setopt( $ch, curlopt_postfields, 'captcha=dawdewad'); curl_setopt( $ch, curlopt_followlocation, 1); curl_setopt( $ch, curlopt_header, 0); curl_setopt( $ch, curlopt_returntransfer, 1); echo $response = curl_exec( $ch ); curl_close($ch);
dont post captcha ! me plz
Comments
Post a Comment