gprasad82 has asked for the wisdom of the Perl Monks concerning the following question:

I am making a http post from server1 to server3 and when I make a http post call, instead of calling the API it is opening the file itself.
my $ua = LWP::UserAgent->new; $ua->timeout(30); my $vars = Vars(); my $response = $ua->post($config{"api_url"},$vars);
  • Comment on Unable to Make http post in perl5 after apache upgrade from 2.2 to 2.4.46
  • Download Code

Replies are listed 'Best First'.
Re: Unable to Make http post in perl5 after apache upgrade from 2.2 to 2.4.46
by marto (Cardinal) on May 06, 2024 at 16:09 UTC

    If the URL is returning the file, rather than executing it and returning the response then your webserver config seems to have been lost. Compare your apache 2.2 config to the new one. Look for something like:

    AddHandler cgi-script .cgi .pl Options FollowSymLinks +ExecCGI