Dear All:
I am doing this (in Groovy):
def cookies=webClient.cookieManager.cookies
def http=new HTTPBuilder("myurl")
http.request(POST) {
def headersCookie=''
cookies.eachWithIndex() { cookie,i->
if (i>0) {
headersCookie+='; '
}
headersCookie+=cookie.getName()+"="+cookie.getValue()
}
headers.'Cookie'=headersCookie
...
}
Is there a better/less hacky way?
Thank you Misha