And don't send an empty array of headers. Fix #16678.
This allows to use system security services instead of us providing curl and openssl. HTTP, Socket and URL are all implemented with proxy support.