It's all about the answers!

Ask a question

Unable to get cookies in the response header on hitting the authorization URL

Bijoy J (11) | asked Apr 07, 10:24 a.m.

 I am using OkHttp library to to make a network request to perform authentication. The URL that I am hitting is: https://SERVER:PORT/jts/j_security_check and I am passing my login credentials j_username=USERNAME and j_passowrd=PASSWORD as x-www-form-urlencoded in the request body. When I check the response headers for Set-Cookie I get "JazzFormAuth=Form; Path=/jts; Secure". I don't get the cookies in the response. By the way the status code is 200 OK.

What am I doing wring here?

Be the first one to answer this question!

Register or to post your answer.