Group,
I have a few line of code which will go and make a request to JSP file and output of that JSP File is in HTML .
below is the code
--------------------------------------
use LWP::UserAgent;
my $browser = LWP::UserAgent->new;
$browser->timeout(10);
$browser->env_proxy;
my $url = "
http://servername/iw-cc/query/query23.jsp";
my $req = HTTP::Request->new(POST => $url);
$req->content_type('application/x-www-form-urlencoded');
$req->content('text/html');
my $res = $browser->request($req);
if ($res->is_success) {
print $res->content;
}
else {
print $res->status_line;
}
----------------------------------------------------------
I don't understand what's wrong in this code that it returns me with
"500 CAN'T CONNECT TO SERVERNAME:80 (BAD PROTOCOL 'TCP')" error message
Thanks for your help..