[jira] [Created] (HTTPCLIENT-2265) Need advice on accessing Entity

2023-03-22 Thread Patrick Barry (Jira)
Patrick Barry created HTTPCLIENT-2265: - Summary: Need advice on accessing Entity Key: HTTPCLIENT-2265 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2265 Project: HttpComponents HttpClient

Re: 421 Misdirected Request / empty reply from H2FileServerExample

2023-03-22 Thread Shaw, Ryan
Never mind, the problem was that I was not specifying a Host on my request. This works: curl -D - -H 'Host: localhost' --http2-prior-knowledge 'http://[0:0:0:0:0:0:0:0]:8080/foo/bar' > On Mar 22, 2023, at 12:27 PM, Shaw, Ryan wrote: > > Hello, > > I am trying to run the H2FileServerExample [

421 Misdirected Request / empty reply from H2FileServerExample

2023-03-22 Thread Shaw, Ryan
Hello, I am trying to run the H2FileServerExample [1] and test it out using curl. However, I only get empty responses back. Starting the server, I see in the log: Listening on /[0:0:0:0:0:0:0:0]:8080 Then I use curl to send a request: curl --http2-prior-knowledge 'http://[0:0:0:0:0:0:0:0]:808