Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: WWW::Mechanize::GZip and post() Issue

by rotneyjacob (Initiate)
on Aug 07, 2016 at 21:00 UTC ( [id://1169306]=note: print w/replies, xml ) Need Help??


in reply to Re^3: WWW::Mechanize::GZip and post() Issue
in thread WWW::Mechanize::GZip and post() Issue

#!/usr/bin/perl use WWW::Mechanize::GZip; `cat /dev/null > /var/www/html/r.out`; $m=`date --date="0 days ago" +'%-m'`; $m=~ s/\n//g; $d=`date --date="0 days ago" +'%-d'`; $d=~ s/\n//g; $y=`date --date="0 days ago" +'%-Y'`; $y=~ s/\n//g; $start=$m."/".$d."/".$y; #$start=trim($start); my $mech = WWW::Mechanize::GZip->new(); $response = $mech->post("http://domain.com/affiliates/login.ashx?tp=1" +,[u=>'xxxxxx',p=>'yyyyyyy']); $response = $mech->post("http://domain.com/affiliates/Extjs.ashx?s=sub +affsummary",[start_date=>'8/7/2016',end_date=>'8/7/2016',csv=>'1']); $mech->save_content("/var/www/html/uv__$y$m$d.csv"); print $response->content();
//this my script. Kindly guide me

Replies are listed 'Best First'.
Re^5: WWW::Mechanize::GZip and post() Issue
by beech (Parson) on Aug 07, 2016 at 22:25 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1169306]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2024-04-25 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found