in reply to 400 error
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!
|
|---|