Sign in to follow this  
Followers 0
ken82m

http - get file modified date

5 posts in this topic

#1 ·  Posted (edited)

I know how to do it via FTP.

But does anyone know how to pull the modified date using http?

Thanks,

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites



I won't be able to tell which file is newer but I'll just compare the file size in bytes.

At least I'll know if something changed.

Thanks,

Kenny


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

Example using HTTP.au3

#include <HTTP.au3>
$host = "www.example.com.au"
$page = "/"

MsgBox (0, "", _GetPageLastModified ($host, $page))

Func _GetPageLastModified ($host, $page)
    $sock = _HTTPConnect ($host)
    _HTTPGet ($host, $page)
    $header = _HTTPRead($sock, 1)
    $headers = $header[3]
    Return $headers[2][1]
EndFunc

Share this post


Link to post
Share on other sites

Example using HTTP.au3

#include <HTTP.au3>
$host = "www.example.com.au"
$page = "/"

MsgBox (0, "", _GetPageLastModified ($host, $page))

Func _GetPageLastModified ($host, $page)
    $sock = _HTTPConnect ($host)
    _HTTPGet ($host, $page)
    $header = _HTTPRead($sock, 1)
    $headers = $header[3]
    Return $headers[2][1]
EndFunc

Cool, thanks I'll give it a try :)

It doesn't make a difference but it's actually an exe

Thanks,

Kenny


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0