php cli server domain
- by jack123
Hi,
I'm running a CLI PHP script.
I'm requesting data from a server that only lets me in if my domain is www.mydomain.com.
It runs fine when I run through Apache, but when I run through CLI I presume my domain has now changed to the server IP, i.e. 84.123.123.123
The external server obviously rejects me now.
How can I request as if I'm www.mydomain.com using the CLI?