cancel
Showing results for 
Search instead for 
Did you mean: 

Rest Commands after login

boeseberta
Champ in-the-making
Champ in-the-making
Hello,

I use Java HTTPClient 4.1 for connection to the REST API.

After I recieve "success" on der REST Login I couldn't use any other REST Commands.

I think REST Login gives a sessionId or not?

I use the following lines:

cookieStore = new BasicCookieStore();
httpContext = new BasicHttpContext();
httpContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);

//REST Login
HttpResponse response = httpClient.execute(httppost,httpContext);

//REST other
HttpResponse response = httpClient.execute(httppost,httpContext);

HTTPContext should include the session or not?

Please help me
1 REPLY 1

boeseberta
Champ in-the-making
Champ in-the-making
solved