28-Jun-2023 02:14
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.
28-Jun-2023 05:32
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?
29-Jun-2023 21:15
@sankarkiran Have you tried running an tcpdump to see if the server is indeed sending the cookie and the F5 is receiving it?