rest-assured: Custom cookie parsing fails when request contains redirect
From everf…@gmail.com on May 11, 2013 20:15:23
Given: A request with a redirect as a result, f.e.
@Test public void logAll() { RestAssured.reset();
given().log().all().when().get("/demo"); //setting cookies, HTTP 302
}
expected: request can be used like all others. actual result:
Request method: GET Request path: http://localhost:8080/demo Request params: <none> Query params: <none> Form params: <none> Path params: <none> Headers: Content-Type=/ Cookies: <none> Body: <none>
Assumption: Since the Apache httpclient internally handles the redirect, rest assured is not noticing what happens before the final result. This leads to lost cookies and possibly other problems.
_Original issue: http://code.google.com/p/rest-assured/issues/detail?id=235_
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 21
Hi Johan,
I have same issue. I read your last answer how to change default settings and pass cookie throw redirect, but I do not understand what value I should set for COOKIE_POLICY and BROWSER_COMPATIBILITY. Could you help, please?