Does anybody know how to use WinInet (CHttpConnection, OpenRequest, etc) to determine a http URL is a dirctory object or a file object?

For example,
http://www.aaa.com/samples/sample1.htm might be a file
http://www.aaa.com/samples should be a directory.

Thanks,

- Fred