
baddy
New User

Jul 31, 2009, 9:57 AM
Post #2 of 2
(836 views)
|
|
Re: [baddy] modifying header of LWP request
[In reply to]
|
Can't Post
|
|
I ended up getting this figured out, below is the code that worked:
# create user agent object my $ua = LWP::UserAgent->new; $ua->agent("MyApp/0.1 "); # add authorization to headers my @headers = (Authorization => "GoogleLogin Auth=$token"); # request page my $res = $ua->get("https://www.google.com/analytics/feeds/accounts/default", @headers);
(This post was edited by baddy on Jul 31, 2009, 9:59 AM)
|