Best way to retrieve data/files from a server?

Feb 25, 2013 at 6:58am
I was wondering if i had to say simply retrieve data from a server whether it be simple plain text for variables or download whole files (FTP), what would be the best method for this? I would imagine there is a pretty big difference between retrieving text and downloading files but im just wondering what the best thing would be to research for both.
Last edited on Feb 25, 2013 at 6:59am
Feb 25, 2013 at 7:15am
It is absolutely no difference whatsoever between text files or another type of files if you want to retrieve them from a webserver.
Feb 25, 2013 at 7:31am
No i meant just read data, not actually grab a text file.
Feb 25, 2013 at 8:35am
In the end, the client and server exchange data using read and write respectively, so in that sense it doesn't matter.

Depending on the actual application, it may be convenient to choose some particular format. That's where the complexity arises, in determining what the request/reply conversation looks like; the protocol. If you don't do this, the server won't understand what's being requested and the client won't understand what it's receiving.
Topic archived. No new replies allowed.