Python - http.client.HTTPSConnection - ashx return empty

184 Views Asked by At

Can someone please help with http.client.HTTPSConnection please?

I completly did not understand why response return : b''

If i use connection.request('GET', url='/') page returns correctly

import http.client
connection = http.client.HTTPSConnection('finviz.com',timeout=30000)
connection.request('GET', url='/screener.ashx')
response = connection.getresponse().read()
print (response)
0

There are 0 best solutions below