*/
class Tweeper {
- private static $userAgent = "Mozilla/5.0";
+ private static $userAgent = "Mozilla/5.0 (Linux; U; Android 4.3; en-us; SM-N900T Build/JSS15J)";
private static $maxConnectionTimeout = 5;
private static $maxConnectionRetries = 5;
return NULL;
}
- // Override User-Agent for twitter.com to force it to serve the mobile UI.
- if ($host == "twitter.com") {
- $user_agent = "Mozilla/5.0 (Linux; U; Android 4.3; en-us; SM-N900T Build/JSS15J)";
- }
- else {
- $user_agent = NULL;
- }
-
- $html = Tweeper::getUrlContents($src_url, $user_agent);
+ $html = Tweeper::getUrlContents($src_url);
if (FALSE === $html) {
trigger_error("Failed to retrieve $src_url", E_USER_WARNING);
return NULL;