In pyhton, When I am trying to get json data from an URL I got the following exception.
('Connection aborted.', LineTooLong('got more than 65536 bytes when reading header line'))
But when I try curl it works without problem.
curl "http://ccmixter.org/api/query?f=json&datasource=default&lic=pd&sort=id&limit=20&offset=20"
Here is the sample python code which raise the exception:
import requests
url = "http://ccmixter.org/api/query?f=json&datasource=default&lic=pd&sort=id&limit=20&offset=20"
req = requests.get(url)
print(req.content)