J
Jarek
Hello!
I have a very simple perl script:
<print http headers>
open FILE, "<myfile" or die "Can't open myfile: $!";
while ($line = <FILE>) {
print $line;
}
print "</pre></body></html>\n\n";
which should work as a trivial HTTP server started from inetd.
When I make a telnet to the port where script is waiting, I'm getting
all the "myfile" (so the script is working as expected).
But when I use browser, I'm getting only part of the file.
tcpdump shows that connections is cleared by serwer in the middle of
the file.
The question is: what is wrong ?
JT.
I have a very simple perl script:
<print http headers>
open FILE, "<myfile" or die "Can't open myfile: $!";
while ($line = <FILE>) {
print $line;
}
print "</pre></body></html>\n\n";
which should work as a trivial HTTP server started from inetd.
When I make a telnet to the port where script is waiting, I'm getting
all the "myfile" (so the script is working as expected).
But when I use browser, I'm getting only part of the file.
tcpdump shows that connections is cleared by serwer in the middle of
the file.
The question is: what is wrong ?
JT.