Proxy Authentication Required with cURL

前端 未结 4 1562
梦如初夏
梦如初夏 2020-12-14 03:33

I would like to use a cURL function, but I\'m behind a proxy, so I get an HTTP/1.1 407 Proxy Authentication Required error...

This is the php code I use

4条回答
  •  离开以前
    2020-12-14 04:06

    Assuming the $proxy_user:$proxy_pass are the correct values, if you are behind an office firewall the authentication credentials to be used would be that of a network administrator and not your own...I've encountered something very similar in my work environment and that was the case for me as my normal credentials didn't have the necessary privileges. The best way to ensure that this is the case however would be to ensure the code works in an open network with your proxy settings commented. Hope this helps!

提交回复
热议问题