1
nazor OP 就是这样 的地址:https://api.orca.io/dists/list.json 访问就会要求登录,请问如何利用php通过验证?
|
2
sNullp 2013-01-26 18:22:42 +08:00 1
是HTTP Basic Auth
其实我觉得用 DIGEST_AUTH 更安全来着。 |
4
sNullp 2013-01-26 18:38:09 +08:00
@nazor 最简单的办法是:http://username:[email protected]
|
6
revlis7 2013-01-26 18:48:07 +08:00 1
用CURL,设置参数:
curl_setopt($ch, CURLOPT_USERPWD, 'account:password'); |