Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Checking server for a file


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 18 October 1999 - 12: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!!

Sponsor:

#2 Niels   Members   -  Reputation: 122

Like
Likes
Like

Posted 18 October 1999 - 12:19 AM

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





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS