Allow custom protocols/headers

This allows setting custom headers, such as Origin, which some servers require.