Golang: How to Use Forward Proxy for HTTP Requests?

14 Replies, 790 Views

Hey everyone,

So I’ve been messing around with golang how to use forward proxy for HTTP requests, and I’m kinda stuck. Like, I get the basics of making HTTP requests in Go, but how do I actually route them through a forward proxy?

I tried setting up a `http.Transport` with a `Proxy` function, but it’s not working as expected. Am I missing something obvious here?

Also, does anyone know if there’s a way to test this locally? Like, maybe spin up a dummy proxy server or something?

Any tips or code snippets would be super helpful! Thanks in advance, y’all.

Cheers!

Messages In This Thread
Golang: How to Use Forward Proxy for HTTP Requests? - by - 23-10-2024, 01:55 AM



Users browsing this thread: 1 Guest(s)