Advertisement
Guest User

Untitled

a guest
Jan 27th, 2016
3,657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2. $url = "http://192.168.1.1/index_lang.htm";
  3. $ch = curl_init($url);
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  5. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
  6. curl_setopt($ch, CURLOPT_USERPWD, "admin:password");
  7. $response_data = curl_exec($ch);
  8. echo $response_data;
  9. curl_close($ch);
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement