Guest User

Untitled

a guest
Jan 27th, 2016
3,436
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data