r***@gmail.com
2006-01-10 19:21:45 UTC
I have a Delphi 7 client application (the client languiage shouldn't
matter here) and I am trying to determine the file size of a file on an
IIS Server using HTTPQueryInfo and the HTTP_QUERY_CONTENT_LENGTH flag.
The particular file I'm trying to determine the sixe of has an
extension of '$$$', and I think it's because of this that the
HTTPQueryInfo function is returning an incorrect result. If I rename
the file on the server to *.doc or *.txt, the HTTPQueryInfo function
call returns the correct file size.
I think this has to do with MIME types or or something similar on the
web server, but I'm not sure. Is there something in IIS I can configure
to get this function call to work with the $$$ file extension?
Thanks in advance,
Will.
matter here) and I am trying to determine the file size of a file on an
IIS Server using HTTPQueryInfo and the HTTP_QUERY_CONTENT_LENGTH flag.
The particular file I'm trying to determine the sixe of has an
extension of '$$$', and I think it's because of this that the
HTTPQueryInfo function is returning an incorrect result. If I rename
the file on the server to *.doc or *.txt, the HTTPQueryInfo function
call returns the correct file size.
I think this has to do with MIME types or or something similar on the
web server, but I'm not sure. Is there something in IIS I can configure
to get this function call to work with the $$$ file extension?
Thanks in advance,
Will.