hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: default ports in host header
Date Tue, 04 Feb 2014 09:34:05 GMT
On Mon, 2014-02-03 at 17:32 -0800, Noah Levitt wrote:
> Someone asked in 2011 how to trim default ports from the Host request
> header. The answer from that time refers to deprecated code.
> http://httpcomponents.10934.n7.nabble.com/Trimming-port-80-in-request-Host-header-td7402.html
> What is the right way to do it now? This is the code I have at the
> moment - https://github.com/internetarchive/heritrix3/pull/37/files
> Btw browsers trim the default ports. Maybe httpcomponents should do
> that by default?
> Noah

Why do you want to rewrite the 'Host' header in the first place. Why
can't you just use default (no explicit port) in the request URL?


To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message