Support content negotiation for HTTP URLs.

Change-Id: I8ee27509a4b297a5e5df09ab835f75df70e6c454