niedziela, 13 marca 2011

HOWTO: Internet, jak przeglądać strony udając telefon? (mobile browser emulator)

Problem:
czasem niektóre strony są lepsze (prostsze) w przeglądaniu i później w pobieraniu (np. wget) w wersji mobilnej, ale najpierw warto sprawdzić jak wyglądają, jak to zrobić?

Rozwiązanie:
1. Pobrać Mozilla Firefox
2. Type about:config in the Mozilla Firefox address bar and press ENTER,
3. Type general.useragent.extra.firefox in the Filter bar,
4. Double-click on the returned Firefox setting, where you can change or spoof a user agent string to overwrite the default “Firefox/2.0.0.4″!
Na przykład na Dell PDA:
Mozilla/5.0 (Linux; U; Android 1.6; en-gb; Dell Streak Build/Donut AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/ 525.20.1

Więcej stringów user-agent: http://www.zytrax.com/tech/web/mobile_ids.html
http://www.walkernews.net/2007/07/05/how-to-change-user-agent-string/

Brak komentarzy:

Prześlij komentarz