Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function talklogin($fuser, $pass) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"http://janus.intertwine.it:3000/api/login");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS,
- "user=semaxa&password=alfa156");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $server_output = curl_exec ($ch);
- var_dump($server_output);
- curl_close ($ch);
- return json_decode($server_output );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement