开发者

How to 'Bridge'/'Stream'/'Forward' an Incoming HTTP Connection (Advanced Proxy)

开发者 https://www.devze.com 2022-12-24 10:08 出处:网络
Not sure if this is possible..basically a server forwards/bridges an incomi开发者_StackOverflow中文版ng connection

Not sure if this is possible..basically a server forwards/bridges an incomi开发者_StackOverflow中文版ng connection Client -> Server -> Destination

Now, rather than a normal proxy script on the server(or a simple redirect),

  1. the Destination sees the incoming connection as from the CLIENT (not from the SERVER).. aka masking the server

  2. the Server in the middle streams the data back to the client(without downloading it first, then passing it)

Anyone know how to do this or something like it in PHP?


This is possible, but not recommended to be done in PHP. Look at the Sockets section of the PHP manual. You would have to run this script as a CGI process instead of a webapp to use it to the full potential.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号