Re: Date header and Java 11 HTTP client

2018-10-31 Thread Chris Hegarty
> On 31 Oct 2018, at 17:49, Michael McMahon > wrote: > > We have filed > > https://bugs.openjdk.java.net/browse/JDK-8213189 > > "Make restricted headers in HTTP Client configurable and remove Date by > default" > > which should deal with

Re: Date header and Java 11 HTTP client

2018-10-31 Thread Michael McMahon
We have filed https://bugs.openjdk.java.net/browse/JDK-8213189 "Make restricted headers in HTTP Client configurable and remove Date by default" which should deal with this finally. - Michael On 31/10/2018, 17:46, Thomas Lußnig wrote: Hi all, from the count of problems that are upcomming

Re: Date header and Java 11 HTTP client

2018-10-31 Thread Thomas Lußnig
Hi all, from the count of problems that are upcomming with these limits. I think there should be an switch to allowing all header. Because why limit them? Anyone who wan't to misuse them can to it via plain "Socket" or SslSocket without limit. I think there are more samples why these limit is b

Date header and Java 11 HTTP client

2018-10-31 Thread Anders Wisch
Hi all, Why does the new Java 11 HTTP client disallow sending the date header (https://tools.ietf.org/html/rfc7231#section-7.1.1.2) with a request? I was excited to convert a bunch of code to use the new built-in HTTP client, and by chance, the first use case I picked was this: String date = H