Perl 500 internal server error. Something wrong with my code.
- by Nitish
I get a 500 internal server error when I try to run the code below in a web server which supports perl:
#! /usr/bin/perl
use LWP;
my $ua = LWP::UserAgent->new;
$ua->agent("TestApp/0.1 ");
$ua->env_proxy();
my $req = HTTP::Request->new(POST => 'http://www.google.com/loc/json');
$req->content_type('application/jsonrequest');…