From 556e84616731934ba1814a3f5cf770d57f1fcbb0 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 13 Sep 2018 16:48:19 -0400 Subject: switch to POST requests --- pyisda/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyisda/utils.py b/pyisda/utils.py index 24a2e4b..a3c5456 100644 --- a/pyisda/utils.py +++ b/pyisda/utils.py @@ -19,7 +19,7 @@ from pyisda.date import BadDay def getMarkitIRData(date = datetime.date.today() - datetime.timedelta(days = 1), currency="USD"): filename = "InterestRates_{0}_{1:%Y%m%d}".format(currency, date) - r = requests.get('http://www.markit.com/news/{0}.zip'.format(filename)) + r = requests.post('http://www.markit.com/news/{0}.zip'.format(filename)) if "zip" in r.headers['content-type']: with zipfile.ZipFile(BytesIO(r.content)) as z: fh = z.open(filename + '.xml') -- cgit v1.2.3-70-g09d2