{"action":"created","issue":{"url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/259","labels_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/259/comments","events_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/259/events","html_url":"https://github.com/tatsuhiro-t/nghttp2/issues/259","id":89229198,"number":259,"title":"Host field in the request  ","user":{"login":"lespla","id":4354214,"avatar_url":"https://avatars.githubusercontent.com/u/4354214?v=3","gravatar_id":"","url":"https://api.github.com/users/lespla","html_url":"https://github.com/lespla","followers_url":"https://api.github.com/users/lespla/followers","following_url":"https://api.github.com/users/lespla/following{/other_user}","gists_url":"https://api.github.com/users/lespla/gists{/gist_id}","starred_url":"https://api.github.com/users/lespla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lespla/subscriptions","organizations_url":"https://api.github.com/users/lespla/orgs","repos_url":"https://api.github.com/users/lespla/repos","events_url":"https://api.github.com/users/lespla/events{/privacy}","received_events_url":"https://api.github.com/users/lespla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-18T08:15:40Z","updated_at":"2015-06-18T09:30:12Z","closed_at":null,"body":"Hello,\r\nI want to get host field in my request to server but I can't achieve. If I try it with upgrade option, in the http1.1 traffic I can see it but I never seent it in http2 request headers.\r\nDoes anybody know how I can achieve it?\r\nBest Regards "},"comment":{"url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/comments/113089632","html_url":"https://github.com/tatsuhiro-t/nghttp2/issues/259#issuecomment-113089632","issue_url":"https://api.github.com/repos/tatsuhiro-t/nghttp2/issues/259","id":113089632,"user":{"login":"tatsuhiro-t","id":404610,"avatar_url":"https://avatars.githubusercontent.com/u/404610?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsuhiro-t","html_url":"https://github.com/tatsuhiro-t","followers_url":"https://api.github.com/users/tatsuhiro-t/followers","following_url":"https://api.github.com/users/tatsuhiro-t/following{/other_user}","gists_url":"https://api.github.com/users/tatsuhiro-t/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsuhiro-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsuhiro-t/subscriptions","organizations_url":"https://api.github.com/users/tatsuhiro-t/orgs","repos_url":"https://api.github.com/users/tatsuhiro-t/repos","events_url":"https://api.github.com/users/tatsuhiro-t/events{/privacy}","received_events_url":"https://api.github.com/users/tatsuhiro-t/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T09:30:12Z","updated_at":"2015-06-18T09:30:12Z","body":"How did you see header field?  Using nghttp -nv prints out the outgoing header fields:\r\n```\r\n$ nghttp -nv http://localhost:3000/ -H 'host: foo'\r\n...\r\n[  0.001] send HEADERS frame <length=45, flags=0x25, stream_id=13>\r\n          ; END_STREAM | END_HEADERS | PRIORITY\r\n          (padlen=0, dep_stream_id=11, weight=16, exclusive=0)\r\n          ; Open new stream\r\n          :method: GET\r\n          :path: /\r\n          :scheme: http\r\n          :authority: localhost:3000\r\n          accept: */*\r\n          accept-encoding: gzip, deflate\r\n          user-agent: nghttp2/1.0.3-DEV\r\n          host: foo\r\n```\r\nThere are \"host: foo\" custom header in the above output.\r\nPerhaps, you may have to change \":authority\" instead of Host, to make server aware of it.\r\n"}}