elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.01k stars 1.09k forks source link

forward proxy #471

Open journeytosilius opened 2 years ago

journeytosilius commented 2 years ago

hi, I need to forward a connection made to https like :

origin request --> local proxy ---> proxy at the internet --- > final destination

and back.

I believe this is called forward proxying, with the particularity of doing the forward to an open proxy on the internet instead of locally

I am fairly new to this so I want to ask if there is an example of forward proxy I can study ?

Thanks

xzycn commented 2 years ago

This should be the way you want: https://github.com/elazarl/goproxy/tree/master/examples/cascadeproxy

client --> middle proxy --> end proxy --> internet