Re: Can a website block the use of file_get_contents ?
- From: petersprc <petersprc@xxxxxxxxx>
- Date: Fri, 28 Mar 2008 17:58:50 -0700 (PDT)
Hi,
This site has user agent detection. Change your UA string to a well-
known one:
ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB;
rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11');
Then you can download the page.
Regards,
John Peters
On Mar 28, 6:03 am, postseb <post...@xxxxxxxxx> wrote:
Can a website block the use of file_get_contents ?
Example : file_get_contents("http://www.google.com") works fine, but
file_get_contents("http://www.petitscailloux.com/Follow.aspx?
sUrl=http://www.seloger.com/199986/16271207/detail.htm") does not.
Any clues or ways to circumvent ?
Thanks a lot !
.
- References:
- Can a website block the use of file_get_contents ?
- From: postseb
- Can a website block the use of file_get_contents ?
- Prev by Date: Re: Simple XML - difficult parsing
- Next by Date: MIME file and gd
- Previous by thread: Re: Can a website block the use of file_get_contents ?
- Next by thread: Re: Can a website block the use of file_get_contents ?
- Index(es):
Relevant Pages
|