users@jersey.java.net

[Jersey] Re: Each new GET, POST, PUT is using a new TCP source port

From: Martin Matula <martin.matula_at_oracle.com>
Date: Mon, 14 Nov 2011 19:20:11 +0100

Are you sure you got the reason for the failure right? How did you get that?

Isn't it possible the authentication the service uses is cookie-based
and your subsequent requests fail because you are not including the cookie?
Martin

On 14.11.2011 19:09, margozzi wrote:
> The RESTful API I am trying to invoke using the Jersey Client requires an
> authentication. Authentication is a REST call. After I do that and try to
> invoke another request, I get an authentication failure response. It is
> because the second request is not sent from the same TCP source port. The
> request is deemed to be from an unauthenticated user and is thus rejected.
>
> Why is the Jersey Client using a new TCP source port for each call? is there
> a way to configure it to NOT do that?
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Each-new-GET-POST-PUT-is-using-a-new-TCP-source-port-tp6993468p6993468.html
> Sent from the Jersey mailing list archive at Nabble.com.