How to get the proxy ip address

curl has been added to the proxy ip,. How can I get the proxy ip address for each curl request now?

Php
Mar.28,2021

you used the proxy ip when you sent the curl request yourself, and now you want to ask how to get the proxy ip you use?
is it because your question is not clear, or is it because I misunderstood it? no, no, no.


ask the question under the reorganization, the feeling is not clear.


client -> proxy -> server
  • server you should be able to get the IP, of proxy.
  • server to get the IP, of client check whether x-forwarded-for header, is added when the proxy is passed to server. If you have it, you can get it. If you don't, you can't.
Menu