Re: changing HTTP_USER_AGENT in lynx

From: Brian E. Lavender (brian@brie.com)
Date: Mon Aug 02 1999 - 17:09:18 PDT


Sean,

Thanks for the tip, but no go. I suppose I ought to grep all the files
searching for HTTP_USER_AGENT, and change any other instances too.

brian

On Mon, Aug 02, 1999 at 04:20:37PM -0700, Sean-Paul Rees wrote:
> "Brian E. Lavender" wrote:
>
> > It dropped it in /usr/local/bin. I was able to successfully connect
> > to a secure page on Netscape, but when I went another step, Netscape's
> > we page complained that my browser is not recognized. i guess not
> > alot of people use lynx. So, I was thinking I could hack the source
> > and make lynx appear as Netscape, and connect to those sites. Anyone
> > out there done this?
>
> In src/LYCgi.c:
>
> make line 370 and 371 into this: (lynx 2-8-2)
> HTSprintf0(&user_agent, "HTTP_USER_AGENT=Mozilla 4.61 [en] (Win98; U)");
>
> Then recompile. You're browser should look like Netscape 4.61 English
> for Windows 98. I haven't tested this, but that should work.
>
> Good luck!
>
> Sean

-- 
Brian Lavender
http://www.brie.com/brian/



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:06 PST