Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $curl = curl_init();
- curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
- curl_setopt($curl, CURLOPT_USERPWD, "логин" . ":" . "пароль");
- curl_setopt($curl, CURLOPT_URL, "http://серве");
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- $result = curl_exec($curl);
Add Comment
Please, Sign In to add comment