Jump to content

Hex

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Hex's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi I wrote curl script for post datas to website but i have problem. For example when u go http://xxxsite.com/?cid=119 on your web page it will redirect to http://xxxsite.com/register and I need to post datas to http://xxxsite.com/register page. but it reject my request cauz I'm not coming from ?cid=119 page. I tried do it with curl referer like I was coming from ?cid=199 but it still rejects. I need to post datas to /register page but curl must go first to ?cid=119 page. It will get ?cid data and other thing then will post my datas to register how can i do this ? here my php codes : <?php $ch = curl_init(); $site = "http://xxxsite.com/?cid=119"; curl_setopt($ch,CURLOPT_REFERER,$site); curl_setopt($ch, CURLOPT_URL, 'http://xxxsite.com/register'); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, 'yazi=deneme'); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $store = curl_exec ($ch); echo $store; curl_close ($ch); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.