Checking server for a file
October 18, 1999 06:19 AM
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!!
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
<b>/NJ</b>
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement