Hi,
I have some Flask code that loads external URLs & has been working since 2 months. But, it suddenly stopped working since yesterday.
Requesting HTTP urls work fine. But, not HTTPS. I have a paid account & I tried reloading app multiple times with no luck.
Any ideas of suggestions ?
Thanks Srini
Sample code
import requests from flask import Flask
app = Flask(name)
@app.route('/testget', methods=['GET', 'OPTIONS']) def testGet(): req = requests.Request('GET', 'http://www.ndtv.com') prepared = req.prepare() s = requests.Session() r = s.send(prepared) print "PRINT GET" print r.status_code print r.content
req = requests.Request('GET', 'https://www.mydoamin.com')
prepared = req.prepare()
s = requests.Session()
r = s.send(prepared)
print "PRINT *GET 2*"
print r.status_code
print r.content
return "all done"