鍍金池/ 問答/PHP/ 請教GuzzleHttp proxy帳號密碼怎么寫

請教GuzzleHttp proxy帳號密碼怎么寫

http://docs.guzzlephp.org/en/...

根據(jù)文檔上面寫的:
Note
You can provide proxy URLs that contain a scheme, username, and password. For example, "http://username:password@192.168.16.1:10".

我這里測試不生效
$options['proxy'] = 'http://username:123456@122.114.228.100:8888';
$client=new Client($options);
$query=$client->get($url);

用CURL就沒有問題。

請教有沒有人測試過這個用戶名密碼具體怎么設(shè)置

回答
編輯回答
故林

請問你現(xiàn)在是怎么設(shè)置的呢?

2018年6月12日 11:27