Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: --time-cond puzzle
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Rainer Canavan via curl-users <curl-users_at_cool.haxx.se>
Date: Mon, 18 Jan 2021 14:12:28 +0100
On Mon, Jan 18, 2021 at 12:53 AM Paul Gilmartin via curl-users
<curl-users_at_cool.haxx.se> wrote:
[...]
> I try:
> ifcurl 19+ curl --location --fail --show-error --time-cond './wlvtype?CMSPIP-L.12966' --header 'From: PaulGBoulder_at_AIM.com' --dump-header './wlvtype?CMSPIP-L.12966.headers' --output './wlvtype?CMSPIP-L.12966' 'http://vm.marist.edu/htbin/wlvtype?CMSPIP-L.12966'
>
> The file is not refetched:
> 1295 $ ls -l wlv*6
> -rw-r--r-- 1 paulgilm wheel 5340 Oct 31 1984 wlvtype?CMSPIP-L.12966
[...]
> wlvtype?CMSPIP-L.12966.headers:Last-Modified: Sun, 17 Jan 2021 18:30:31 -05.00.00
>
> Is that Last-Modified valid syntactically?
No, it isn't. Your timezone is completely broken, and it must be
"GMT" and nothing else:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
curl parses this as "-1", and therefore effectively older than any
file you would reasonably expect on a UNIX system.
rainer
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-01-18
Date: Mon, 18 Jan 2021 14:12:28 +0100
On Mon, Jan 18, 2021 at 12:53 AM Paul Gilmartin via curl-users
<curl-users_at_cool.haxx.se> wrote:
[...]
> I try:
> ifcurl 19+ curl --location --fail --show-error --time-cond './wlvtype?CMSPIP-L.12966' --header 'From: PaulGBoulder_at_AIM.com' --dump-header './wlvtype?CMSPIP-L.12966.headers' --output './wlvtype?CMSPIP-L.12966' 'http://vm.marist.edu/htbin/wlvtype?CMSPIP-L.12966'
>
> The file is not refetched:
> 1295 $ ls -l wlv*6
> -rw-r--r-- 1 paulgilm wheel 5340 Oct 31 1984 wlvtype?CMSPIP-L.12966
[...]
> wlvtype?CMSPIP-L.12966.headers:Last-Modified: Sun, 17 Jan 2021 18:30:31 -05.00.00
>
> Is that Last-Modified valid syntactically?
No, it isn't. Your timezone is completely broken, and it must be
"GMT" and nothing else:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
curl parses this as "-1", and therefore effectively older than any
file you would reasonably expect on a UNIX system.
rainer
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-01-18