Use request instead of http and add proxy support