how can i know weather a file is available or not in the server?

how can i know weather a file is available or not in the server?

need more info,

what kind of file?
what kind of server?
what protocol used?