recently created this project to solve that problem: scrapy-proxy-headers. It will let you correctly send and receive custom headers to proxies (such as proxymesh) when making https requests.