You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The check added in #425 does not work behind CISCO IronPort proxies.
Running curl -I http://pkg0.nyi.freebsd.org/freebsd:10:x86:64/latest/digests.txz behind the proxy and outside the proxy reveals:
No proxy
Last-Modified: Thu, 06 Mar 2014 23:32:49 GMT
Proxy
Last-Modified: Thu, 06 Mar 2014 23:32:49 UTC
The standard (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html) does state, "All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception. For the purposes of HTTP, GMT is exactly equal to UTC (Coordinated Universal Time)."
libfetch(3) ignored any Last-Modified not having GMT:
r = strptime(p, "%a, %d %b %Y %H:%M:%S GMT", &tm);
We could fix libfetch(3) to also accept UTC.
I would prefer a fix that works on all releases though. Perhaps bundling libfetch, or using another mechanism to check for changes.
It is also too bad that libfetch(3) does not support ETAG / If-None-Match, as that does work properly behind the proxy:
# curl -I http://pkg0.nyi.freebsd.org/freebsd:10:x86:64/latest/digests.txz|grep ETag
ETag: "531905a1-10c530"
# curl --header 'If-None-Match: "531905a1-10c530"' http://pkg0.nyi.freebsd.org/freebsd:10:x86:64/latest/digests.txz -o digests.txz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
# curl --header 'If-None-Match: "CHANGED531905a1-10c530"' http://pkg0.nyi.freebsd.org/freebsd:10:x86:64/latest/digests.txz -o digests.txz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1073k 100 1073k 0 0 682k 0 0:00:01 0:00:01 --:--:-- 681k
The text was updated successfully, but these errors were encountered:
The check added in #425 does not work behind CISCO IronPort proxies.
Running
curl -I http://pkg0.nyi.freebsd.org/freebsd:10:x86:64/latest/digests.txz
behind the proxy and outside the proxy reveals:No proxy
Proxy
The standard (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html) does state, "All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception. For the purposes of HTTP, GMT is exactly equal to UTC (Coordinated Universal Time)."
libfetch(3) ignored any Last-Modified not having GMT:
We could fix libfetch(3) to also accept UTC.
I would prefer a fix that works on all releases though. Perhaps bundling libfetch, or using another mechanism to check for changes.
It is also too bad that libfetch(3) does not support ETAG / If-None-Match, as that does work properly behind the proxy:
The text was updated successfully, but these errors were encountered: