idy Posted March 28, 2008 Share Posted March 28, 2008 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 (use curl ?) ? Thanks a lot ! Link to comment https://forums.phpfreaks.com/topic/98290-can-a-website-block-the-use-of-file_get_contents/ Share on other sites More sharing options...
doni49 Posted March 29, 2008 Share Posted March 29, 2008 The url you want to access is "http://www.petitscailloux.com/Follow.aspx". And you want to post a variable named Url with a value of "http://www.seloger.com/199986/16271207/detail.htm". Link to comment https://forums.phpfreaks.com/topic/98290-can-a-website-block-the-use-of-file_get_contents/#findComment-503762 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.