Hey guys, New user to NUT and was playing with the upsstats.cgi. On my website, I have everything going through a wrapper script that frames the pages. So my web files are actually truncated since the wrapper installs all my headers for me. When using the upsstats.cgi, it works fine embedding it into my pages and then editing the .html template EXCEPT, I can't get rid of: Content-type: text/html Pragma: no-cache Which are output by the cgi binary. Since everything else is pretty much controllable, I would think this would be too - but it's not. Would it be a huge issue to make those items template controlled? (I'm asking the dev's since I would guess it would need to start there.) I'm not sure if I'd call this a "bug" -- but let me know if I'm crazy. Thanks, -Ben -- Ben Kamen - O.D.T., S.P. ---------------------------------------------------------------------- eMail: ben at benjammin.net http://www.benjammin.net Fortune says: Insults are effective only where emotion is present. -- Spock, "Who Mourns for Adonais?" stardate 3468.1 - - NOTICE: All legal disclaimers sent to benjammin.net/benkamen.net or any of it's affiliated domains are rendered null and void on receipt of communications and will be handled/considered as such.
Charles Lepple
2013-Feb-01 13:46 UTC
[Nut-upsdev] Question for Dev's on NUT's upsstats.cgi
On Feb 1, 2013, at 1:26 AM, Ben Kamen wrote:> When using the upsstats.cgi, it works fine embedding it into my pages and then editing the .html template EXCEPT, I can't get rid of: > > Content-type: text/html > Pragma: no-cache > > Which are output by the cgi binary. > > Since everything else is pretty much controllable, I would think this would be too - but it's not.If it didn't output those headers, it wouldn't be a CGI binary :-) I guess all of the schemes I have seen for embedding the output from a script into a web page have allowed the headers to be present (server-side, or embedding a frame client-side). How do you propose that we address this? -- Charles Lepple clepple at gmail
Apparently Analagous Threads
- NUT support for CyberPower PR1500LCDRTXL2Ua
- Accessing: upsstats.cgi Error: no hosts to monitor (check hosts.conf)
- Accessing: upsstats.cgi Error: no hosts to monitor (check hosts.conf)
- APC MeasureUPS support
- Accessing: upsstats.cgi Error: no hosts to monitor (check hosts.conf)