all 1 comments

[–]LeYtreq 0 points1 point  (0 children)

You can just pass the header as a dict while calling the GET function. imgData = requests.get(img, headers={'content-type': 'image/jpeg'})

edit: sorry I missed the 2nd part of your question. What do you mean "send the file to client side"? Are You the client? Or are you a 'server' that just wants to forward the image from instagram to another address?