<?php $ch = curl_init(); $url = 'https://xxx.xxx.xxx/xxx.aspx'; $username ='uuuuu'; $password ='ppppp'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); $output = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); print $output; ?>
curl.exe -u "${user}:${pass}" -L "$page" | Set-Content -Encoding UTF8 $raw
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)