{"action":"closed","issue":{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/899","labels_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/899/comments","events_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/issues/899/events","html_url":"https://github.com/AsyncHttpClient/async-http-client/issues/899","id":83378147,"number":899,"title":"Netty: Workaround for IIS server when Host header value contains port as well","user":{"login":"yatindra","id":1597785,"avatar_url":"https://avatars.githubusercontent.com/u/1597785?v=3","gravatar_id":"","url":"https://api.github.com/users/yatindra","html_url":"https://github.com/yatindra","followers_url":"https://api.github.com/users/yatindra/followers","following_url":"https://api.github.com/users/yatindra/following{/other_user}","gists_url":"https://api.github.com/users/yatindra/gists{/gist_id}","starred_url":"https://api.github.com/users/yatindra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yatindra/subscriptions","organizations_url":"https://api.github.com/users/yatindra/orgs","repos_url":"https://api.github.com/users/yatindra/repos","events_url":"https://api.github.com/users/yatindra/events{/privacy}","received_events_url":"https://api.github.com/users/yatindra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/labels/Defect","name":"Defect","color":"e11d21"},{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/labels/Netty","name":"Netty","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"slandelle","id":849197,"avatar_url":"https://avatars.githubusercontent.com/u/849197?v=3","gravatar_id":"","url":"https://api.github.com/users/slandelle","html_url":"https://github.com/slandelle","followers_url":"https://api.github.com/users/slandelle/followers","following_url":"https://api.github.com/users/slandelle/following{/other_user}","gists_url":"https://api.github.com/users/slandelle/gists{/gist_id}","starred_url":"https://api.github.com/users/slandelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slandelle/subscriptions","organizations_url":"https://api.github.com/users/slandelle/orgs","repos_url":"https://api.github.com/users/slandelle/repos","events_url":"https://api.github.com/users/slandelle/events{/privacy}","received_events_url":"https://api.github.com/users/slandelle/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/milestones/58","html_url":"https://github.com/AsyncHttpClient/async-http-client/milestones/1.9.26","labels_url":"https://api.github.com/repos/AsyncHttpClient/async-http-client/milestones/58/labels","id":1127541,"number":58,"title":"1.9.26","description":"","creator":{"login":"slandelle","id":849197,"avatar_url":"https://avatars.githubusercontent.com/u/849197?v=3","gravatar_id":"","url":"https://api.github.com/users/slandelle","html_url":"https://github.com/slandelle","followers_url":"https://api.github.com/users/slandelle/followers","following_url":"https://api.github.com/users/slandelle/following{/other_user}","gists_url":"https://api.github.com/users/slandelle/gists{/gist_id}","starred_url":"https://api.github.com/users/slandelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slandelle/subscriptions","organizations_url":"https://api.github.com/users/slandelle/orgs","repos_url":"https://api.github.com/users/slandelle/repos","events_url":"https://api.github.com/users/slandelle/events{/privacy}","received_events_url":"https://api.github.com/users/slandelle/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2015-05-24T17:21:45Z","updated_at":"2015-06-01T08:38:19Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-01T08:16:40Z","updated_at":"2015-06-01T08:38:19Z","closed_at":"2015-06-01T08:38:19Z","body":"Hi,\r\n\r\nSo, this is actually not an issue, but I would like to know a workaround for this.\r\nWhen the Host header in request contains the port as well `Host: www.example.com:443`\r\nwhich is the default behaviour and which is also as per RFC, servers like IIS fail to parse it properly and return a 404 for a valid URL.\r\nThis may not be the case always, only when IIS is not configured properly.\r\nFor direct cases where I know the end URL, I usually set the Host header manually and AHC does not overwrite the value I provide.\r\nBut in cases where a redirection happens AHC will generate a new request and there I don't have control over the value. I don't have control over the original URL input as well, so updating to the correct URL is also not possible.\r\nExample URL: https://www.chamberofcommerce.com/short-hills-nj/11218079-massage-envy-spa-short-hills-llc\r\n\r\nIs there a workaround for this?\r\n\r\n\r\n"}}