Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1491

can you add HTTPS functionality to a python flask web server?

$
0
0

I am trying to build a web interface to Mock up a restful interface on networking device this networking device uses Digest Authentication and HTTPS.I figured out how to integrate Digest Authentication into the web server but I cannot seem to find out how to get https using FLASK if you can show me how please comment on what i would need to do with the code below to make that happen.

from flask import Flask, jsonifyapp = Flask(__name__)@app.route('/')def index():    return 'Flask is running!'@app.route('/data')def names():    data = {"names": ["John", "Jacob", "Julie", "Jennifer"]}    return jsonify(data)if __name__ == '__main__':    app.run()

Viewing all articles
Browse latest Browse all 1491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>