nadavvin Posted April 26, 2007 Share Posted April 26, 2007 Is curl can pretend to real browser when it get content and how set the browser that it pretend to? Link to comment https://forums.phpfreaks.com/topic/48734-can-curl-pretend-as-real-browser/ Share on other sites More sharing options...
btherl Posted April 26, 2007 Share Posted April 26, 2007 Use this: curl_setopt($ua, CURLOPT_USERAGENT, 'Mozilla 0.0.1 Apple ][e 8-bit'); If you wanted to spoof an Apple II browser, for example. Link to comment https://forums.phpfreaks.com/topic/48734-can-curl-pretend-as-real-browser/#findComment-238890 Share on other sites More sharing options...
nadavvin Posted April 26, 2007 Author Share Posted April 26, 2007 thanks. What do I write for firefox? Can I check what my browser send to copy there? Is there php function that return this string of the user browser? Link to comment https://forums.phpfreaks.com/topic/48734-can-curl-pretend-as-real-browser/#findComment-239309 Share on other sites More sharing options...
Wildbug Posted April 26, 2007 Share Posted April 26, 2007 http://www.google.com/ user agent strings Link to comment https://forums.phpfreaks.com/topic/48734-can-curl-pretend-as-real-browser/#findComment-239338 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.