Hi Jess,

Lynx sends this value for "USER_AGENT" field in the HTTP request.  

Lynx/2.8.1rel.2 libwww-FM/2.14

Just grab that field from the environment.

//in JavaServlets/JSP it's 
String agentstr = request.getHeader( "USER_AGENT" );

//in C, it's
char *agentstr = env( "USER_AGENT" );

#in Perl, dunno.

HTH

jeff --

Jess Emerson Uy wrote:
> 
> hi everyone,
> 
> does anybody know/have a script that will detect if the surfer
> is using lynx and immediately redirect him to a lynx-friendly html
> version of the page?
> 
> this will be used for the PLUG website.
> 
> Jess Emerson Uy
> [EMAIL PROTECTED]
> 
> -
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

-- 

Jeff Gutierrez
---
http://www.gra.ph
graPH - The substance that makes techies tick!

-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to