Skip to content

Instantly share code, notes, and snippets.

@NicosKaralis
Created January 12, 2015 17:27
Show Gist options
  • Save NicosKaralis/4407d59e8d0c620fdcbd to your computer and use it in GitHub Desktop.
Save NicosKaralis/4407d59e8d0c620fdcbd to your computer and use it in GitHub Desktop.
Debug output
wget http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip -d
DEBUG output created by Wget 1.15 on darwin13.2.0.
URI encoding = “UTF-8”
--2015-01-12 15:25:41-- http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip
Resolvendo www1.caixa.gov.br (www1.caixa.gov.br)... 200.201.162.210
Caching www1.caixa.gov.br => 200.201.162.210
Conectando-se a www1.caixa.gov.br (www1.caixa.gov.br)|200.201.162.210|:80... conectado.
Created socket 3.
Releasing 0x00007ff579408a90 (new refcount 1).
---request begin---
GET /loterias/_arquivos/loterias/D_megase.zip HTTP/1.1
User-Agent: Wget/1.15 (darwin13.2.0)
Accept: */*
Host: www1.caixa.gov.br
Connection: Keep-Alive
---request end---
A requisição HTTP foi enviada, aguardando resposta...
---response begin---
HTTP/1.1 302 Found
Location: http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip
Set-Cookie: security=true; path=/
Connection: close
Content-Length: 0
Content-Type: text/html; charset=UTF-8
---response end---
302 Found
Stored cookie www1.caixa.gov.br -1 (ANY) / <session> <insecure> [expiry none] security true
URI content encoding = “UTF-8”
Localização: http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip [redirecionando]
Closed fd 3
URI content encoding = None
--2015-01-12 15:25:41-- http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip
Found www1.caixa.gov.br in host_name_addresses_map (0x7ff579408a90)
Conectando-se a www1.caixa.gov.br (www1.caixa.gov.br)|200.201.162.210|:80... conectado.
Created socket 3.
Releasing 0x00007ff579408a90 (new refcount 1).
---request begin---
GET /loterias/_arquivos/loterias/D_megase.zip HTTP/1.1
User-Agent: Wget/1.15 (darwin13.2.0)
Accept: */*
Host: www1.caixa.gov.br
Connection: Keep-Alive
Cookie: security=true
---request end---
A requisição HTTP foi enviada, aguardando resposta...
---response begin---
HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Mon, 12 Jan 2015 17:25:40 GMT
Connection: close
Content-Length: 39
---response end---
400 Bad Request
Closed fd 3
2015-01-12 15:25:41 ERRO 400: Bad Request.
wget http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip -d
DEBUG output created by Wget 1.15 on linux-gnu.
URI encoding = 'ANSI_X3.4-1968'
--2015-01-12 17:25:20-- http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip
Resolving www1.caixa.gov.br (www1.caixa.gov.br)... 200.201.162.210
Caching www1.caixa.gov.br => 200.201.162.210
Connecting to www1.caixa.gov.br (www1.caixa.gov.br)|200.201.162.210|:80... connected.
Created socket 3.
Releasing 0x0000000001ebafa0 (new refcount 1).
---request begin---
GET /loterias/_arquivos/loterias/D_megase.zip HTTP/1.1
User-Agent: Wget/1.15 (linux-gnu)
Accept: */*
Host: www1.caixa.gov.br
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 302 Found
Location: http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip
Set-Cookie: security=true; path=/
Connection: close
Content-Length: 0
Content-Type: text/html; charset=UTF-8
---response end---
302 Found
Stored cookie www1.caixa.gov.br -1 (ANY) / <session> <insecure> [expiry none] security true
URI content encoding = 'UTF-8'
Location: http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip [following]
Closed fd 3
URI content encoding = None
--2015-01-12 17:25:20-- http://www1.caixa.gov.br/loterias/_arquivos/loterias/D_megase.zip
Found www1.caixa.gov.br in host_name_addresses_map (0x1ebafa0)
Connecting to www1.caixa.gov.br (www1.caixa.gov.br)|200.201.162.210|:80... connected.
Created socket 3.
Releasing 0x0000000001ebafa0 (new refcount 1).
---request begin---
GET /loterias/_arquivos/loterias/D_megase.zip HTTP/1.1
User-Agent: Wget/1.15 (linux-gnu)
Accept: */*
Host: www1.caixa.gov.br
Connection: Keep-Alive
Cookie: security=true
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Mon, 12 Jan 2015 17:25:20 GMT
Connection: close
Content-Length: 39
---response end---
400 Bad Request
Closed fd 3
2015-01-12 17:25:21 ERROR 400: Bad Request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment