hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Levitt <nlev...@archive.org>
Subject default ports in host header
Date Tue, 04 Feb 2014 01:32:43 GMT
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

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


Mime
View raw message