In article <4a439a67$0$17431$>,
Bliddo <> wrote:
> HI, I'm developing a small proxy server for filtering purpose.
> The client connects to the proxy, the proxy opens a connection to the
> requested URL, and redirects the output to the client, basic stuff.
> I'm having troubles with the user agent though... i.e. if I go to
> yahoo.com, it tells me to upgrade my browser
>
> Here's the code I've been using:
[...]
> conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE
> 5.0; Windows 98; DigExt)");
[...]
Additional information on User-Agent for popular browsers:
<http://developer.mozilla.org/en/User_Agent_Strings_Reference>
<http://developer.apple.com/internet/safari/faq.html#anchor2>
<http://msdn.microsoft.com/en-us/library/ms537503.aspx>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
|