dr34m3rs
asked on
perl: useragent - need to remove all headers from GET
I need to get only the content of the file I'm getting, I don't want any headers.
Example, although this doesn't seem to work:
$ua = LWP::UserAgent->new;
$request = HTTP::Request->new('GET',$url);
$request->authorization_ba sic($usern ame_server , $password_server);
$data = $response->content()->as_s tring;
Any help would be much appreciated.
Thank you very much.
Best regards,
Dr34m3r
Example, although this doesn't seem to work:
$ua = LWP::UserAgent->new;
$request = HTTP::Request->new('GET',$url);
$request->authorization_ba
$data = $response->content()->as_s
Any help would be much appreciated.
Thank you very much.
Best regards,
Dr34m3r
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you everyone :)
Dr34m3r