R
RAT
I am trying to write an LWP script to automate the retrieval of usage
reports from Xerox printers. I called Xerox and they say there is no
automated way or alternative to the web gui which requires logging in
and hitting a button to generate new reports. I can log in and
retrieve the reports but when I run the PHP to generate the new
reports, it says OK and does nothing.
my $ua = LWP::UserAgent->new(cookie_jar => {});
$ua->cookie_jar->set_cookie("PHPSESSID");
my $rsp = $ua->post('http://111.111.111.111/properties/authentication/
login.php?webUsername=mgtuser&webPassword=secret'); # no, not real pw
& IP
# This lines reports OK but does NOT generate a new report
my $newrep = $ua->post('http://111.111.111.111/properties/accounting/
generateReport.php');
I've tried adding more cookies (there were 3 others). I added user
agent and referring URL - no change.
It's a popular printer. Anyone done this? Clues?
http://yesistilluseperl.blogspot.com/
reports from Xerox printers. I called Xerox and they say there is no
automated way or alternative to the web gui which requires logging in
and hitting a button to generate new reports. I can log in and
retrieve the reports but when I run the PHP to generate the new
reports, it says OK and does nothing.
my $ua = LWP::UserAgent->new(cookie_jar => {});
$ua->cookie_jar->set_cookie("PHPSESSID");
my $rsp = $ua->post('http://111.111.111.111/properties/authentication/
login.php?webUsername=mgtuser&webPassword=secret'); # no, not real pw
& IP
# This lines reports OK but does NOT generate a new report
my $newrep = $ua->post('http://111.111.111.111/properties/accounting/
generateReport.php');
I've tried adding more cookies (there were 3 others). I added user
agent and referring URL - no change.
It's a popular printer. Anyone done this? Clues?
http://yesistilluseperl.blogspot.com/