I'm downloading various files through I/O-streaming in my Java application. Receiving and saving those files works well as long as I have a full URL-path including file name, but how can I find out the name of the index file (as defined in, for example, Apache's DirectoryIndex
) of a domain? The HTTP header doesn't provide this information and neither does the URLConnection
method.
Thanks alot!
Be well
S.