print "Content-type:text/html\n\n"; use strict; #use LWP::Simple; use LWP::UserAgent; use CGI; use CGI::Carp qw(fatalsToBrowser); my $cgi = new CGI; my $var = CGI::param('wert'); my $url1 = 'https://server.xyz.de/psp.php'; my $url2 = 'wert=$var&save_report=yes' ; my $ua = LWP::UserAgent->new; $ua->agent( "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko Firefox/11.0" ); $ua->timeout(10); $ua->requests_redirectable(undef); # Redirects ausschalten! my $response = $ua->post($url); if ($response->is_success) { print $response->content; # or whatever } else { die $response->status_line; }