Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
# to use this as a generic POST client<br />
$line = "exit\n";<br />
@commands = (@commands, $line);<br />
$content_length += length($line);<br />
# end of block<br />
$| = 1;<br />
($target, $port) = split(/:/, $server);<br />
if($port == 0) {<br />
}<br />
$port = 80;<br />
$server = $target;<br />
httpconnect($server, $port);<br />
post($file, $server, $port, $content_length, @commands);<br />
## uncomment the while loop below<br />
## to suppress the HTTP headers in the response<br />
#while() { # header<br />
# last if($_ eq "\r\n");<br />
#}<br />
while() { # body<br />
}<br />
print $_;<br />
close(S);<br />
exit;