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)
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
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