LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 12-18-2007, 05:46 AM   #1
Galorin
LQ Newbie
 
Registered: May 2003
Distribution: xubuntu, slackware, DSL
Posts: 8

Rep: Reputation: 0
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?
 
Old 12-18-2007, 07:42 AM   #2
stzein
Member
 
Registered: Mar 2004
Location: Antwerp, Belgium
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
maybe you could try the option `--cookies=on'?
 
Old 12-18-2007, 11:13 AM   #3
Galorin
LQ Newbie
 
Registered: May 2003
Distribution: xubuntu, slackware, DSL
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 12-18-2007, 06:44 PM   #4
stzein
Member
 
Registered: Mar 2004
Location: Antwerp, Belgium
Distribution: Gentoo
Posts: 65

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Webhost monitoring jonbey Linux - Server 3 09-30-2007 03:38 PM
installation of Turba on my webhost pengyou Linux - Software 3 06-24-2006 03:55 PM
Test My Webhost aratis General 8 03-25-2005 04:34 PM
Would it be possible to use GMAIL as webhost? Megamieuwsel General 1 02-05-2005 05:14 AM
do you know a good webhost? name_in_use450 General 3 08-19-2004 02:34 PM


All times are GMT -5. The time now is 01:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration