[ENH] ChangeUserAgent-nk
Ned Konz
ned at bike-nomad.com
Sat Jan 28 03:57:01 UTC 2012
from preamble:
"Change Set: ChangeUserAgent-nk
Date: 19 February 2002
Author: Ned Konz
In case you have to deal with web sites that do browser sniffing
(determining content by browser User-Agent strings), this change set
lets you change the User-Agent sent by the HTTP request methods.
This removes the hard-coded UA string in the various HTTP request
methods (which were mostly all different anyhow), and uses a class
variable.
How to appear to be MSIE 5.0 for a while:
oldUA _ HTTPSocket userAgent: 'Mozilla/4.0 (compatible; MSIE 5.0;
Windows 95)'.
... do something ...
HTTPSocket userAgent: oldUA
"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeUserAgent-nk.cs.gz
Type: application/octet-stream
Size: 4331 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20120128/d23eb9e5/ChangeUserAgent-nk.cs.obj
More information about the Squeak-dev
mailing list
|