headzoo / surf

Stateful programmatic web browsing in Go.
MIT License
1.48k stars 159 forks source link

Surf - Sending request via proxy #97

Open ricardorego opened 6 years ago

ricardorego commented 6 years ago

Hi, is there a roadmap for Surf to support Proxies? (sending request via proxy) Best

shavit commented 6 years ago

You can use bow.SetTransport (link), look at my pull request, or this example https://github.com/shavit/surf/commit/0c66b3812d11ec568d753e0515c7fdc459791652#diff-fc939672748c63d9d3c671163467f8e5R556

AurevoirXavier commented 5 years ago

For me, var _ = os.Setenv("HTTP_PROXY", "http://127.0.0.1:1087") works.

sdima75 commented 4 years ago

For me, var _ = os.Setenv("HTTP_PROXY", "http://127.0.0.1:1087") works.

Hello. I am a beginner programmer. Please write a short example of working with PROXY. I can't write a working code. I have tried different options.