LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Downloading webalizer graphics from webhost (https://www.linuxquestions.org/questions/linux-server-73/downloading-webalizer-graphics-from-webhost-607567/)

Galorin 12-18-2007 04:46 AM

Downloading webalizer graphics from webhost
 
I want to download the daily usage statistics chart and hourly usage charts from my ISP. I currently use the following wget line (edited for security)

Code:

wget --http-user=username --http-passwd=secret https://en1.supercali.net:19638/menu/cgi-bin/webalizer.cgi/web/daily_usage_200712.png
But the file I get back contains the following:

Code:

Traceback (most recent call last):
  File "/var/www/cgi-bin/webalizer.cgi", line 84, in ?
    cookie = parse_cookie(os.environ)
  File "/var/www/cgi-bin/webalizer.cgi", line 77, in parse_cookie
    cookie.load(httpenv['HTTP_COOKIE'])
  File "/usr/src/build/317580-i386/install/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
 KeyError: HTTP_COOKIE

How can I get these graphics for inclusion in a report?

stzein 12-18-2007 06:42 AM

maybe you could try the option `--cookies=on'?

Galorin 12-18-2007 10:13 AM

setting --cookies=on gives me

Code:

Traceback (most recent call last):
  File "/var/www/cgi-bin/webalizer.cgi", line 84, in ?
    cookie = parse_cookie(os.environ)
  File "/var/www/cgi-bin/webalizer.cgi", line 77, in parse_cookie
    cookie.load(httpenv['HTTP_COOKIE'])
  File "/usr/src/build/317580-i386/install/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
 KeyError: HTTP_COOKIE

so no change

stzein 12-18-2007 05:44 PM

Then maybe
'--load-cookies file'
where 'file' is the cookies file of a browser that has visited the page (cookies.txt usually).


All times are GMT -5. The time now is 12:58 AM.