简体   繁体   中英

Does curl in a PHP reveal the address of the secondary IP address to the client?

Say in a PHP script you made a cURL request to a secondary service/API. At any point would this address be displayed to the client? My understanding is that it would not as PHP scripts are entirely server sided.

Could someone please provide clarity?

Only if you include something like POST data, GET data, or manually specify a header with the IP address in it. You're correct in that the request will originate from the server as PHP is 100% server-side.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM