http - Play framework WS set cookie -
how can set cookie in ws request?
val request = ws.url("http://testurl.com/test.pdf")
is possible?
i'm using play version 2.1.1
ws.url(theurl).withheaders("cookie" -> "cookiename=cookieval; name2=val2")
how can set cookie in ws request?
val request = ws.url("http://testurl.com/test.pdf")
is possible?
i'm using play version 2.1.1
ws.url(theurl).withheaders("cookie" -> "cookiename=cookieval; name2=val2")
Comments
Post a Comment