urllib2 python (Transfer-Encoding: chunked)

前端 未结 1 1916
走了就别回头了
走了就别回头了 2021-01-13 05:27

I used the following python code to download the html page:

response = urllib2.urlopen(current_URL)
msg = response.read()  
print msg

For a

相关标签:
1条回答
  • 2021-01-13 06:28

    I've found out that if I Accept-Language header is specified than server doesn't drop TCP connection, otherwise it does.

    curl -H "Accept-Language:uk,en-US;q=0.8,en;q=0.6,ru;q=0.4" -v 'http://www.legifrance.gouv.fr/affichJuriJudi.do?oldAction=rechJuriJudi&idTexte=JURITEXT000024053954&fastReqId=660326373&fastPos=1'
    
    0 讨论(0)
提交回复
热议问题