ken82m Posted November 4, 2009 Share Posted November 4, 2009 (edited) I know how to do it via FTP. But does anyone know how to pull the modified date using http? Thanks, Kenny Edited November 5, 2009 by ken82m "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." Link to comment Share on other sites More sharing options...
ken82m Posted November 6, 2009 Author Share Posted November 6, 2009 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 "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." Link to comment Share on other sites More sharing options...
BrettF Posted November 6, 2009 Share Posted November 6, 2009 Try looking a the HTTP functions. It's probably in the header somewhere.My link Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BrettF Posted November 6, 2009 Share Posted November 6, 2009 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 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
ken82m Posted November 8, 2009 Author Share Posted November 8, 2009 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 "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." Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now