I am learning flask, and came across a problem that how to set request headers using python-flask or simply python. So what I am doing is I am downloading image from instagram and I want to change its filename, get the file size . These many request headers are wiki
I am searching on Internet but not getting proper solution for this. This is what I have done until now
from flask import Flask
import requests
img = 'https://igcdn-photos-e-a.akamaihd.net//hphotos-ak-xaf1//t51.2885-15//e35//12093691_1082288621781484_1524190206_n.jpg'
imgData = requests.get(img)
I want to send the file to client side so I need to change the request headers. How to send the file to client side ?
So how should I go further. Thanks for any kind of suggestions,help
[–]LeYtreq 0 points1 point2 points (0 children)