Hi, consider not building your own objects when the request is very simple (see HTTP::Tiny):
my $url = 'http://www.example.com'; my $response = HTTP::Tiny->new->get($url); print "$response->{status} $response->{reason}\n"; print $response->{content} if length $response->{content};
Hope this helps!
In reply to Re: 400 error
by 1nickt
in thread 400 error
by futureman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |