How can I set cookie in WS request?
val request = WS.url("http://testurl.com/test.pdf")
Is it possible?
I'm using Play version 2.1.1
WS.url(theurl).withHeaders("Cookie" -> "cookiename=cookieval; name2=val2")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With