Fix CSV output in avail.c

Jochen Bern Jochen.Bern at LINworks.de
Mon Jan 9 17:20:23 CET 2012


On 01/09/2012 04:38 PM, Andreas Ericsson wrote:
> On 11/28/2011 09:04 PM, Sven-Göran Bergh wrote:
>> Content-type now is Text/csv, so the browser
>> presents a view/save dialog.
> How is this an improvement over just hitting Ctrl+S once the page
> has loaded?

Just to list two facts:

1. At least Firefox does a *RE*load of the URL when you save the page:

> # grep readme /var/log/httpd/ssl_access_log
> 192.168.51.57 - bern [09/Jan/2012:16:57:44 +0100] "GET /nagios/readme.txt HTTP/1.1" 200 772
> 192.168.51.57 - bern [09/Jan/2012:16:57:54 +0100] "GET /nagios/readme.txt HTTP/1.1" 200 772

2. There's no guarantee that the saved version is *identical* to the
actual server-provided one (though I admit that so far, I've seen only
*HTML* getting majorily reformatted).

> I know there are parsers out there that handle the Nagios-style CSV format

All the more reason to get the browser's rendering engine (?) out of the
data flow *before* there's funky text/plain browser-X-only
prettyprinting ...

Regards,
								J. Bern
-- 
Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/>
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox




More information about the Developers mailing list