All:
Thanks for your responses to this issue. I was able to put
together a simple Perl script to show that I can send reply data
before any of the input stream from the client is read. The program
will actually send the output back once it is called, even though
the client is sending data, i.e. a really large file. The server
side code completes in less than a second, before the client is
even finished sending all of it's data, but the client won't bear
any of the fruit of this. The problem is that the client won't
receive the reply until it is done sending the data. I now
understand the previous comments. I misunderstood, and thought you
were saying that the server side program couldn't output anything
until the entire request was sent. I get it now.
What I'm wondering is this: In Coldfusion, is there any way
to read the input stream sent by the client, and handle it as I
wish, instead of the CF engine automatically processing the input
stream? My guess is that I can't, and that I've have to write a
Java program (or some other language) to accomplish this. Just
wondering if it can be done in ColdFusion.
For reference, here's a simple Perl script where I can read
the standard input stream myself -- can something like this be done
in CF?
#!D:/perl/bin/perl.exe
print "Content-type: text/html\n\n";
print <<END_HTML;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
This is the post page, post.pl.<br>
<pre>
END_HTML
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime(time);
print "Current time= $min:$sec <br>";
#sleep(2);
# read the request data from standard input
#while (defined($line = <STDIN>)) {
# process $line here
#print "LINE=", $line, ";";
#}
print <<END_HTML2;
</pre>
</body>
</html>
END_HTML2