wardy277 Posted June 6, 2008 Share Posted June 6, 2008 Hi, I have tried searching for a solution to this but i dont really know what to search for. What i am working on is a university project and am starting by messing around with websites and mining them. what i want is to use the file_get_contents function to get a webpage and firstly display its content. simple to start. My problem starts when i tried to do it with facebook. It recognized that my script was not a browser and returned a javascript redirect to a page which said: You are using an incompatible web browser. Sorry, we're not cool enough to support your browser. Please keep it real with one of the following browsers: * Firefox * Opera * Safari * Flock Is it possible to send headers with the function as if it was firefox? Also does anyone know if they use cookies also? any help will be appreciated, Chris Link to comment https://forums.phpfreaks.com/topic/109056-disguise-php-script-as-a-browser-facebook/ Share on other sites More sharing options...
jjacquay712 Posted June 6, 2008 Share Posted June 6, 2008 I believe you can do that with live http headers. its a firefox addon Link to comment https://forums.phpfreaks.com/topic/109056-disguise-php-script-as-a-browser-facebook/#findComment-559472 Share on other sites More sharing options...
discomatt Posted June 6, 2008 Share Posted June 6, 2008 You want to use cURL to make your requests. http://www.google.ca/search?q=php+curl+mimic+browser I like to use the Developer and Tamper Data add-ons for Firefox... you can see all the headers firefox is sending, and replicate them Link to comment https://forums.phpfreaks.com/topic/109056-disguise-php-script-as-a-browser-facebook/#findComment-559474 Share on other sites More sharing options...
wardy277 Posted June 7, 2008 Author Share Posted June 7, 2008 Thank you for the reply. I did come across something like this. but whe i tried it i got this error: Fatal error: Call to undefined function curl_init() Do i have to enable it in php.ini or recompile php with this enabled? Chris Link to comment https://forums.phpfreaks.com/topic/109056-disguise-php-script-as-a-browser-facebook/#findComment-559698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.