Hi Jorn
Could you verify if this works. Then I would like to add a little bit of
documentation to the wiki how to disable cookies.




On Sun, Jun 21, 2009 at 4:42 AM, Willem Jiang <willem.ji...@gmail.com>wrote:

> Hi,
>
> Please use this parameter
> httpClient.cookiePolicy=ignoreCookies
>
> Willem
>
> Jörn Kottmann wrote:
> > Hi,
> >
> > we are using camel http to poll a xml feed,
> > tough after a few days we get 400 Bad Request replies
> > from the server.
> >
> > Analyzing of the network traffic showed that on each
> > request the http server is setting a new cookie,
> > after 2 two days our get request is too long and
> > the apache http server rejects the request with a 400
> > reply.
> >
> > The jakarta http client has an option to ignore cookies,
> > it can be set via setCookiePolicy to the CookiePolicy.IGNORE_COOKIES
> > constant.
> >
> > I tried to add httpClient.setCookiePolicy=ignoreCookies or
> > httpClient.setCookiePolicy=IGNORE_COOKIES to the url
> > but cookies are still not ignored.
> >
> > The feed url contains username and password parameters,
> > to avoid camel http to use these for authentication I use
> > the HttpProducer.QUERY header field.
> > The httpClient parameter was added directly to the url and
> > not to the QUERY header.
> >
> > How is the cookie policy set correctly to ignore cookies ?
> >
> > Jörn
> >
> >
> >
>
>


-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to