lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev proposal for LYK_SCRIPT and patch


From: Klaus Weide
Subject: Re: lynx-dev proposal for LYK_SCRIPT and patch
Date: Tue, 6 Jul 1999 05:15:21 -0500 (CDT)

wOn Sun, 4 Jul 1999, Scott Bigham wrote:
>                                          Your gettidy-esque lynxcgi:/
> mechanism looks interesting, though I can't test it with my current
> build.  Do relative links get handled correctly?  How does it affect the
> cache?

Maybe the gettidy.sh looked too intimidating to serve as a good
example, so here's a much simpler one:
- no error checking
- the sed command is the example Eduardo gave for
  http://www.elmercurio.cl/Ediciones/30061999/html/0130061999001A0010105.asp

1. Make sure lynx is compiled with lynxcgi support, and without -DNO_RULES.
   (and is new enough that it has the cernrules stuff)
2. Save this as /SOME-PATH/fixdemo.sh, and make it executable:
   ----- snip -----
#! /bin/sh
lynx -mime_header "$QUERY_STRING" | \
sed "/table/,/\/table/{s/<br>/<p>/g;}"
   ----- snip -----
3. Make sure lynxcgi execution is allowed for /SOME-PATH/fixdemo.sh,
   that is check TRUSTED_LYNXCGI in your lynx.cfg.
4. Put the line
      RULE:Pass xhttp://* lynxcgi:/SOME_PATH/fixdemo.sh?http://*
   in your lynx.cfg.
5. Set environment variable 'xhttp_proxy' before starting lynx, value
   doesn't matter, for example type (depending on your shell)
      export xhttp_proxy=dummy
   or 
      setenv xhttp_proxy dummy

Now visit the URLs
a) http://www.elmercurio.cl/Ediciones/30061999/html/0130061999001A0010105.asp
b) xhttp://www.elmercurio.cl/Ediciones/30061999/html/0130061999001A0010105.asp
and compare.

   Klaus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]