https://www.legifrance.gouv.fr/download/pdf/legiOrKali?id=LEGITEXT000006069577.pdf&size=5,9 Mo&pathToFile=/LEGI/TEXT/00/00/06/06/95/77/LEGITEXT000006069577/LEGITEXT000006069577.pdf&title=Code général des impôts - Mouve

level de log mis à 1

Récupération du document https://www.legifrance.gouv.fr/download/pdf/legiOrKali?id=LEGITEXT000006069577.pdf&size=5,9 Mo&pathToFile=/LEGI/TEXT/00/00/06/06/95/77/LEGITEXT000006069577/LEGITEXT000006069577.pdf&title=Code général des impôts.

Récupération de l'URL https://www.legifrance.gouv.fr/download/pdf/legiOrKali?id=LEGITEXT000006069577.pdf&size=5,9 Mo&pathToFile=/LEGI/TEXT/00/00/06/06/95/77/LEGITEXT000006069577/LEGITEXT000006069577.pdf&title=Code général des impôts...

Traceback (most recent call last):
  File "/homez.476/thbz/prog/mouve/mouve.py", line 1257, in main
    res = get_document(requete, cgi_args)
  File "/homez.476/thbz/prog/mouve/mouve.py", line 998, in get_document
    with urllib.request.urlopen(r) as req:
  File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 455, in open
    response = self._open(req, data)
  File "/usr/lib/python3.4/urllib/request.py", line 473, in _open
    '_open', req)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 1217, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.4/urllib/request.py", line 1174, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/lib/python3.4/http/client.py", line 1142, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.4/http/client.py", line 1170, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.4/http/client.py", line 1015, in putrequest
    "(found at least {!r})".format(url, match.group()))
http.client.InvalidURL: URL can't contain control characters. '/download/pdf/legiOrKali?id=LEGITEXT000006069577.pdf&size=5,9 Mo&pathToFile=/LEGI/TEXT/00/00/06/06/95/77/LEGITEXT000006069577/LEGITEXT000006069577.pdf&title=Code général des impôts' (found at least ' ')

Raccourcis

Commandes

Fermer