[SLL] seeking Web-based pager / log file viewer
Robert Woodcock
rcw at blarg.net
Thu May 8 15:45:41 PDT 2008
On Thu, May 08, 2008 at 10:24:13AM -0700, Phil Mocek wrote:
> I need to make some log files available via HTTP, and simply
> pointing the Web server at them is not going to work, as I don't
> want to send the whole file every time.
That actually will work.
It's not line-number oriented, but HTTP has a Range: header that lets the
client specify to the server what part of the file you want to grab.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
Wget can specify arbitrary HTTP headers with the --header option.
--
Robert Woodcock - rcw at blarg.net
"but if your socks have no holes in them... how do you put your feet in?"
-- seen on slashdot
More information about the linux-list
mailing list