PeterRigole
unread,Sep 1, 2011, 6:27:51 AM9/1/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to REST assured
Hello,
I'm using RESTassured 1.2.3 on a server that includes 3 cookies in
it's reply (I validated this with firebug). When I try to fetch my
cookies using response.getCookie("voucher") once for each expected
cookie (with their proper name), I only get one of the three cookies.
When I browse into the received
com.jayway.restassured.response.Response object while debugging, I
also only see one cookie. However, when I trigger a warning by
leaving my cookie-domain (set by the server) empty, I get a warning on
all cookies from the underlying apache client code (once for each of
the 3 cookies):
01-09-2011 12:22:06 0 WARN
org.apache.http.client.protocol.ResponseProcessCookies - Invalid
cookie header: "Set-Cookie: voucher=7848920d-6f72-4167-
a3ad-10bacd15a247; Domain=""; Expires=Sat, 03-Sep-2011 10:22:06 GMT;
Path=/". Blank value for domain attribute
Is it possible that there is a bug in
com.jayway.restassured.response.Response that limits one to fetch only
one of the received cookies (I guess it is the last-set cookie in the
header)?
Best regards,
Peter