LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 06: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, 10: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, 05: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



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 02:38 PM
installation of Turba on my webhost pengyou Linux - Software 3 06-24-2006 02:55 PM
Test My Webhost aratis General 8 03-25-2005 03:34 PM
Would it be possible to use GMAIL as webhost? Megamieuwsel General 1 02-05-2005 04:14 AM
do you know a good webhost? name_in_use450 General 3 08-19-2004 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:17 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
Open Source Consulting | Domain Registration