Advertisement
Guest User

Untitled

a guest
Oct 15th, 2016
716
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $ch = curl_init();
  2. curl_setopt($ch, CURLOPT_URL, "http://username:password@{$ip}/saada_info.php");
  3. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  4. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
  5. curl_setopt($ch, CURLOPT_USERPWD, "username:password");
  6. $result = curl_exec($ch);
  7. curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement