Faking User-Agent with PyS60
“Anyone who slaps a ‘this page is best viewed with Browser X’ label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network.” — Tim Berners-Lee in Technology Review, July 1996
As ever, Python came to the rescue. Firing up the Twisted framework, I created a simple HTTP proxy which modifies the user-agent string on the fly. Peaches:
The script is still very quirky and is the farthest thing from what you’d call a stable solution. You can download the inital release here. The zip file contains the tiny proxy server script as well as Twisted and Zope dependencies. Good luck with trying to counter retards who’re doing everything they can to avoid compatibility. Yes, even 14 years after Sir Tim’s veracious proclamation.Tags: Code, Flag 42, Internet, Nokia, Open Source, Proxy, PyS60, Python, Series 60, Symbian, Technology, User-Agent
hi bro just a question cause im still a noob on twisted i was looking at your code how ca i add a prefix to the url using twisted?
lets say im running ur proxy to change my UA and i want it to add string to the browsed url using ur proxy sctipt
from -> http://your.com
Comment by jo — October 28, 2010 @ 7:23 pm