import requests r=requests.get("http://www.example.com/", headers={"content-type":"text"})

Read more of this post