Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Not receive 'Set-Cookie' data from the response header in F5 14.0.0

sankarkiran
Nimbostratus
Nimbostratus

I calling F5 through Java code via httpClient. Here is my code

HttpClient httpClient = trustEveryoneSSLHttpClient();
HttpPost authenticatePost = new HttpPost(getAuthenticationUrl());
authenticatePost.addHeader("Content-Type", "application/json");
authenticatePost.addHeader("Authorization", "Basic " + Base64Coder.encodeString(username + ":" + password));
HttpResponse authResponse = httpClient.execute(authenticatePost);

But in the authResponse I am not getting Set-Cookie data on the headers array.

I am using F5 14.X version. 

Can you please help me to resolve.

2 REPLIES 2

whisperer
Cumulonimbus
Cumulonimbus

Are you expecting to receive a cookie pashrough from the application or are you expecting the F5 BIGIP to perform the persistence management and provide the cookie? Have you tested against the server from the F5 via curl to see if you receive a cookie?

 

Paulius
MVP
MVP

@sankarkiran Have you tried running an tcpdump to see if the server is indeed sending the cookie and the F5 is receiving it?