1
我得到了很多這些警告消息對REST客戶端調用,不需要Cookie:忽略餅乾
[http-bio-8080-exec-10] WARN protocol.ResponseProcessCookies - Cookie rejected: "[version: 1][name: mzf_in][value: 990108][domain: .xxxx.com][path: /asdf][expiry: null]". Domain attribute ".xxxx.com" violates RFC 2109: host minus domain may not contain any dots
[http-bio-8080-exec-10] WARN protocol.ResponseProcessCookies - Cookie rejected: "[version: 0][name: mzf_dr][value: 0][domain: .xxxx.com][path: /asdf][expiry: Wed Dec 31 21:00:00 ART 1969]". Illegal path attribute "/asdf". Path of origin: "/xyz"
我想在Groovy中HTTPBuilder禁用cookie的處理要求我正在使用。谷歌搜索我發現,應該有一種方法來「設置政策忽略餅乾」(http://lists.canoo.com/pipermail/webtest/2006q2/005902.html)在「httpclient params」。試圖添加到我的Groovy/Grails代碼,但無法使其工作。沒有在HTTPBuilder官方網站上找到與此相關的任何信息。 有人在Groovy/Grails HTTPBuilder中配置了IGNORE_COOKIES選項?有人可以提供一個更具體的例子嗎?
它的工作,謝謝! – AlejandroVD 2014-10-28 21:07:23
不客氣:) – Opal 2014-10-28 21:07:39