Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function talklogin($fuser, $pass) {
  2. $ch = curl_init();
  3.  
  4. curl_setopt($ch, CURLOPT_URL,"http://janus.intertwine.it:3000/api/login");
  5. curl_setopt($ch, CURLOPT_POST, 1);
  6. curl_setopt($ch, CURLOPT_POSTFIELDS,
  7. "user=semaxa&password=alfa156");
  8.  
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  10.  
  11. $server_output = curl_exec ($ch);
  12.  
  13. var_dump($server_output);
  14. curl_close ($ch);
  15. return json_decode($server_output );
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement