php cli server domain

Posted by jack123 on Stack Overflow See other posts from Stack Overflow or by jack123
Published on 2010-03-17T04:42:59Z Indexed on 2010/03/17 4:51 UTC
Read the original article Hit count: 558

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about php-cli

Related posts about dns