Support for absolute URLs in HTTP requests.

Props to @rodsenra for the original fix at #248