curl_setopt ( $curl, CURLOPT_USERPWD, '用户名:密码' ); 转载于:https://www.cnblogs.com/gaohuag/archive/2011/11/02/2233077.html