I want to create a script that checks the URL and performs an action (download + unzip) when changing the "Last-Modified" header of the deleted file. I was thinking about getting a header with curl, but then I have to store it somewhere for each file and do a date comparison.
Does anyone have any other idea using (mostly) standard unix tools?
thank
A possible solution will periodically run this algorithm in the client window.
If-Modified-Since
304 Not Modified
200 OK
Last-Modified
(, ) . , . , HTTP-, , .
, curl :
curl
HTTP . If-Modified-Since -Unmodified-. Curl -z/- time-cond ., , , , . :curl -z local.html http://remote.server.com/remote.html, , . , string '-', :curl -z -local.html http://remote.server.com/remote.html" " . , , :curl -z http://remote.server.com/remote.htmlCurl . '-', '-'.
HTTP . If-Modified-Since -Unmodified-. Curl -z/- time-cond .
, , , , . :
curl -z local.html http://remote.server.com/remote.html
, , . , string '-', :
curl -z -local.html http://remote.server.com/remote.html
" " . , , :
curl -z http://remote.server.com/remote.html
Curl . '-', '-'.
, :
Java ? , Apache HTTPcore, "If-Modified-Since" HTTP-, , , 304, , , .
Source: https://habr.com/ru/post/1747522/More articles:request a large text file containing JSON objects - jsonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1747518/how-do-i-add-css-to-be-loaded-last-in-drupal&usg=ALkJrhgGirMe-ZFvHI4fszJnwyezrm1edAhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1747519/in-ruby-using-cucumber-should-i-mock-out-calls-to-a-webservice&usg=ALkJrhgHuvhG2bSO_JpDt9zyuVsawEKc1wOleDB connection only works when debugging - c #WPF DataBinding for standard encoding CLR properties - data-bindingProfiling PHP Inline - profilingC # - periodic data reading and Thread.Sleep () - multithreadingOut of Process COM Server - function calls and threads - c ++Should a function return a link or object? - c ++Validation of user data entered - validationAll Articles