我正在用PHP构建一个REST Web服务客户端,目前我正在使用curl向服务发出请求.
如何使用curl进行身份验证(http basic)请求?我必须自己添加标题吗?
php rest curl basic-authentication
basic-authentication ×1
curl ×1
php ×1
rest ×1