Archived

This topic is now archived and is closed to further replies.

Guest Anonymous Poster

Checking server for a file

Recommended Posts

Guest Anonymous Poster
Does anyone know how to check a server for a specific file? For instance, if I had the IP address of a server or computer (example: 168.216.218.20) what is the code to check this computer for a specific file? I badly need to know how to do this!! Any help is appreciated!!

Share this post


Link to post
Share on other sites
An IP number is not enough - you'll need to know what higher level protocols the server supports (IOW, you need a server process to service your request). FTP, HTTP or similar should do the trick, but you can also write you own socket server.

If the server supports HTTP you can make a simple get request - if it fails, the file most likely didn't exist.

/Niels

Share this post


Link to post
Share on other sites