Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: User Agent and web request

Reply
Thread Tools

Re: User Agent and web request

 
 
John B. Matthews
Guest
Posts: n/a
 
      06-25-2009
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>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling request.getHEades("user-agent") twice ->NPE?! Stefanie Ertheld Java 4 02-03-2008 01:52 PM
link to download forte free agent 3.3 ( freeware ) news reader agent jameshanley39@yahoo.co.uk Computer Information 1 07-27-2007 12:23 AM
OT: Paging Agent Jar, Agent Briscobar FrisbeeŽ MCSE 0 02-08-2007 07:41 PM
Dhcp Relay Agent And Acl On Sw 3750, DHCP Relay Agent and ACL on Sw 3750 Vimokh Cisco 3 09-06-2006 02:16 AM
LWP User Agent/HTTP Request help needed! Bumble Perl Misc 2 02-28-2004 11:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57