Http proxy support: This commit fixes #4302

Hello this commit should fix #4302. Comments are most welcome.