Query regarding ContentType API's

2023-01-04 Thread Nitish Chitta
Hello, May I know the difference between ContentType.create() and ContentType.parse() API's? I want the object to be returned after parsing the content type along with the parameters. The create() API fails to do the same. Can parse() be used as an alternative? Regards, Nitish

Re: Not able to handle early response for large payload in a POST request

2021-09-26 Thread Nitish Chitta
leg Kalnichevski: > > > > > > On 9/23/2021 9:21 AM, Nitish Chitta wrote: > >> When I try to hit the server with the wrong credentials for basic > >> authentication, I am getting a *socket-write exception* which should > >> ideally return a 401 status code. The s

Re: Not able to handle early response for large payload in a POST request

2021-09-23 Thread Nitish Chitta
Thanks for the response, Oleg! Regards, Nitish On Thu, Sep 23, 2021 at 2:12 PM Oleg Kalnichevski wrote: > > > On 9/23/2021 9:21 AM, Nitish Chitta wrote: > > When I try to hit the server with the wrong credentials for basic > > authentication, I am getting a *socket-w

Not able to handle early response for large payload in a POST request

2021-09-23 Thread Nitish Chitta
When I try to hit the server with the wrong credentials for basic authentication, I am getting a *socket-write exception* which should ideally return a 401 status code. The server is closing the connection immediately after it finds the credentials incorrect while the client is still sending the