Advertisement
Guest User

Untitled

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