Re: Can a website block the use of file_get_contents ?
- From: postseb <postseb@xxxxxxxxx>
- Date: Fri, 28 Mar 2008 14:24:03 -0700 (PDT)
This is utterly brilliant, and got me screen scraping in no time.
Paul
Thanks Paul and C. - I tried it with curl as well, using the
curl_grap_page and curl with an ini_set of a generic user agent, but I
got the following error :
Thanks also to Jan, I will also have to try fsockopen.
Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons).
It could, however, be viewed by browsers running on the local server
machine.
Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within
a "web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirect" attribute of the
application's <customErrors> configuration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
.
- References:
- Can a website block the use of file_get_contents ?
- From: postseb
- Re: Can a website block the use of file_get_contents ?
- From: PaulB
- Can a website block the use of file_get_contents ?
- Prev by Date: Simple XML - difficult parsing
- Next by Date: Re: PDO/MYSQL Problem
- 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
|