Knowledge Base Nr: 00004 nph-k_proxy.pl - http://www.swe-kaiser.de

!/usr/bin/perl
no-parse-header script wird vom server ausgeführt gibt aber '204 no content' zurück und
wird vom browser ignoriert. funktioniert nur für apache-webserver -
der trick ist das file prefix 'nph-'.

  
#perform some actions ...
#... f.e. just call another service
local ($href) = $ENV{"QUERY_STRING"};
$href =~ s/.*href=//; #extract complete href with parameters
local (@out) = `GetHTTPSource.exe $href`; #GetHTTPSource is an external c-program

print "$ENV{'SERVER_PROTOCOL'} 204 No Content\n";
print "Server: $ENV{'SERVER_SOFTWARE'}\n";
print "Content-type: text/plain\n\n";
exit(0);