How php curl simulates an ip source

< H2 > scene < / H2 >

An and B are ubuntu
codes for pre-launch development machines. On host A, you need to access host B through php curl
, but because A manually adds a host record to B
(it can be understood that all pre-launch environments point to pre-launch environments)

< H2 > question < / H2 >

how to initiate a link through curl, in win10 environment, pretending that I am not on win10, but on host A, and that the initiated link is the pre-launch of the visited B, not the official line of B.

< H2 > assume < / H2 >

A pre-launch address 192.168.1.1
B pre-launch address 192.168.1.2

< H2 > try < / H2 >

curl_setopt ($ch, CURLOPT_HTTPHEADER, array ("CLIENT-IP: Simulation ip","X-FORWARDED-FOR: Simulation ip"));

)

this did not succeed

< H2 > ask for answers < / H2 >

whether and how it can be implemented

Nov.17,2021

use proxy IP.


curl_setopt($curl, CURLOPT_PROXY, "192.168.1.1");
curl_setopt($curl, CURLOPT_PROXYPORT, 80); 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35140-2bf80.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35140-2bf80.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?