Re: leaving UA trace when getting XML from URI
| From: | Richard Lynch | Date: | Tue, 03 Jul 2007 06:37:21 +0000 |
| Subject: | Re: leaving UA trace when getting XML from URI | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258088@lists.php.net to get a copy of this message | ||
On Wed, June 27, 2007 7:09 am, pobox@verysmall.org wrote:
> i wrote a small RSS reader using file_get_contents to get the XML from
> the URI - however i noticed that this does not leave trace (User
> Agent)
> in the remote server logs.
>
> is there a way in PHP to get XML from URI and leave UA trace in the
> remote server logs?
http://php.net/curl
will let you send whatever headers you want fairly easily.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?