Advertisement
Guest User

Untitled

a guest
Oct 12th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2. $username = 'Liam_Walker';
  3. $password = 'xxxxx';
  4. $loginUrl = 'http://cp.rpg-city.de/';
  5.  
  6. $ch = curl_init();
  7.  
  8. curl_setopt($ch, CURLOPT_URL, $loginUrl);
  9. curl_setopt($ch, CURLOPT_POST, 1);
  10. curl_setopt($ch, CURLOPT_POSTFIELDS, 'name='.$username.'&password='.$password);
  11. curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
  12. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  13.  
  14. $store = curl_exec($ch);
  15. echo $store;
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement