Forum Discussion

sankarkiran's avatar
sankarkiran
Icon for Nimbostratus rankNimbostratus
Jun 28, 2023

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

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.

  • 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?

     

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