Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only download the zip files if necessary #13

Open
marcelometal opened this issue Nov 16, 2020 · 0 comments
Open

Only download the zip files if necessary #13

marcelometal opened this issue Nov 16, 2020 · 0 comments

Comments

@marcelometal
Copy link
Member

marcelometal commented Nov 16, 2020

Using HTTP headers we can avoid to download the same file.

Headers: Last-Modified and Content-Length

$ curl -I http://agencia.tse.jus.br/estatistica/sead/odsele/consulta_cand/consulta_cand_2018.zip

HTTP/1.1 200 OK
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Mon, 16 Nov 2020 01:00:05 GMT
ETag: "10118c-641f67-5b42ee6194614"
Accept-Ranges: bytes
Content-Length: 6561639
Content-Type: application/zip
F5-IpCliente: 189.36.X.X
ClientIP: 189.36.X.X
Server: thttpd/2.26 ??apr2004
Date: Mon, 16 Nov 2020 03:05:31 GMT
Connection: keep-alive
Set-Cookie: BIGipServerPool_Apache=197961920.20480.0000; path=/; Httponly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant