getting the "last modified" time of a file on a server

Hi

I know that using LFS I can get the last modified time of a local file. I’m not sure how to do this for a file on a server. I have seen references to using network.request with the HEAD method, but I’m not sure how to handle this. Basically I want to download a file from the server for my app, but only if it’s been modified since the last download. 

Can someone point me in the direction of a tutorial? I am having a hard time getting off the ground with this one.

thanks,

I’d recommend a PHP and XML/JSON appraoch.
On your server you’d have a PHP script that accepts a date argument. Your Corona app would then call the PHP script and pass the date of the last download. The PHP script on the server gets the date from the Corona app, and compares it with the date of the file on the server. If the file on the server is newer then the PHP script would build a XML or JSON response which is sent back to your Corona app.

thanks, I’ll give that a shot.

I’d recommend a PHP and XML/JSON appraoch.
On your server you’d have a PHP script that accepts a date argument. Your Corona app would then call the PHP script and pass the date of the last download. The PHP script on the server gets the date from the Corona app, and compares it with the date of the file on the server. If the file on the server is newer then the PHP script would build a XML or JSON response which is sent back to your Corona app.

thanks, I’ll give that a shot.