go-resty / resty

Simple HTTP and REST client library for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SetProxy

daijun168 opened this issue · comments

What if the agent needs to verify the username and password

like this:
client.SetProxy(http://{proxy_username}:{proxy_password}@{proxy_host}:{proxy_port})

proxy_username and proxy_password need url.QueryEscape

Thanks, @chrisfeng0723, for responding to the question.