Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
# a blank like, any occurence of a ":" in the first line causes the POST<br />
# request to fail. This may be an IIS issue or an HTTP issue.<br />
@commands = ("\n");<br />
$content_length = 0;<br />
while($line = ) {<br />
}<br />
@commands = (@commands, qq{$line});<br />
$content_length += length($line);<br />
# comment out the block below if you are meticulous<br />
# about putting your own "exit" at the end, or if you want<br />
# 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);