Re: How to deal with multi-step WWW-Authenticate with the new HttpClient

2019-04-17 Thread Chris Hegarty
Thank you for following up with the resolution, Max. -Chris. On 17/04/2019 14:24, Weijun Wang wrote: Sorry, after adding "-Djdk.httpclient.HttpClient.log=headers,errors,channel" I found out it's my problem. On Apr 17, 2019, at 11:09 AM, Weijun Wang wrote: Hi, All, I am trying the new Http

Re: How to deal with multi-step WWW-Authenticate with the new HttpClient

2019-04-17 Thread Weijun Wang
Sorry, after adding "-Djdk.httpclient.HttpClient.log=headers,errors,channel" I found out it's my problem. > On Apr 17, 2019, at 11:09 AM, Weijun Wang wrote: > > Hi, All, > > I am trying the new HttpClient to deal with a multi-step Negotiate > authentication with Windows IIS, and here is my co

How to deal with multi-step WWW-Authenticate with the new HttpClient

2019-04-16 Thread Weijun Wang
Hi, All, I am trying the new HttpClient to deal with a multi-step Negotiate authentication with Windows IIS, and here is my code. HttpClient hc = HttpClient.newBuilder().build(); var req = HttpRequest.newBuilder().uri(new URI(args[0])); while (true) { var resp = hc.send(req.build(), HttpResp