Asterbing said:
Hum, we have to separate CGI script and CGI script which use CGI.pm.
I don't what that means. You have to separate you CGI scripts that use the
CGI.pm module from those that don't use CGI.pm but rather use some other
(home-grown?) CGI-implementing code? What kind of separation do they need,
and how is that relevant?
Thus, if I'm reading value POSTed about file field, I just get the
client file path and not a file handle like CGI.pm provide.
And then what do you do with the client file path once you have it?
Well, then, if I understand your reply, it means I've to use CGI.pm,
No, you do not *have* to. CGI.pm is not magical. You can implement
yourself anything that CGI.pm normally implements for you. I usually don't
think that that is a good idea, but in this is not clear that CGI.pm does
what you need. $CGI:
OST_MAX is there to protect your hard-drive, not your
network. If $POST_MAX is exceeded, it stills reads the entire data stream
from the client, it just doesn't save it. That may not be what you want.
(But the server itself may read the entire request anyway, before it passes
it on to the CGI.)
consider POSTed form contains file data too, and "content-length" is
usable to define the file length.
If you are posting files with file fields using http and CGI, then
CONTENT_LENGTH should have length, whether you are using CGI.pm module or
not.
Xho