Export to GitHub

rest-client - issue #211

Set-Cookie response header not shown with rest-client api


Posted on Aug 11, 2014 by Quick Ox

What steps will reproduce the problem? 1. Set up a rest client with ClientBuilder.newClient(); 2. Give it a GET target - a web address that will respond with a cookie 3. Send the request and then read the response headers

What is the expected output? What do you see instead? The response headers should contain a Set-Cookie header that has the cookie that was returned from the target server. However there is such header at all. All other headers are valid and present, as expected.

What version of the product are you using? On what operating system? javaee7

Please provide any additional information below. When reading the error page output from the server, it clearly states that i should enable cookies for my requests. Therefore, it thinks that the rest client doesn't allow cookies.

The whole point is to get the cookie as it starts my session and enables further requests. As a proof of concept, i can open the same target address in a web-browser and get the cookie, which i then manually set in the rest-client's subsequent requests' headers...

Comment #1

Posted on Aug 12, 2014 by Quick Kangaroo

Believe you are confusing this product to some other one.

Status: Invalid

Labels:
Type-Defect Priority-Medium