Re: changing HTTP_USER_AGENT in lynx

From: Sean-Paul Rees (sean@dreamfire.net)
Date: Mon Aug 02 1999 - 16:20:37 PDT


"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



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