Skip to content

Instantly share code, notes, and snippets.

@yuxel
Created May 24, 2010 18:39
Show Gist options
  • Save yuxel/412248 to your computer and use it in GitHub Desktop.
Save yuxel/412248 to your computer and use it in GitHub Desktop.
<?php
error_reporting(E_ALL);
ini_set("display_errors",true);
$ch = curl_init();
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_URL, 'http://sozluk.sourtimes.org/login.asp');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, 'n1=burayadagiristekiepostam&p=burayaparolam&re=y&ref&im');
curl_setopt ($ch, CURLOPT_COOKIEJAR, '/tmp/mcookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
curl_setopt($ch, CURLOPT_URL, 'http://sozluk.sourtimes.org/show.asp?t=opera');
$content = curl_exec ($ch);
echo $content;
curl_close ($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment