Thanks for the reply. Whenever I am running the script,new window is opening but now the correct URL which is mentioned in the code. I am not sure where the problem exists exactly but the code is running fine and no error is found in the new window. Basic nutshell is that I have to open the URL whenever the script is executed.
#!/usr/bin/perl use CGI ':standard'; use HTTP::Request; use LWP::Simple qw/get/; #use LWP::UserAgent; print header(); print start_html(); $a=param('$selected_rows.Location'); $a =~ s/\D//g; $a =~ s/^[0]+//g; $url = "http://operationalintelligence/Site/sitevisit.php?site=$a&type +=a&days=90"; #$url = 'https://10.204.16.17:16316/ibm/console/login.do?action=secure +'; my $data=get($url); print end_html();
In reply to Re^2: Unable to execute URL from perl/cgi script
by coolsaurabh
in thread Unable to execute URL from perl/cgi script
by coolsaurabh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |