On Sat, 2006-12-23 at 07:01 +0000, [EMAIL PROTECTED] wrote: > ---- [EMAIL PROTECTED] wrote: > > Hi, > > > > I was wondering if it's possible to set the > > "http.protocol.single-cookie-header" parameter to 'true', > > non-programmatically, i.e., either from the command line or from some kind > > of properties file? > >
Hi Jim, HttpClient is a low level library designed to be equally useable by standalone applications as well as those run in a managed environment / container. As such HttpClient provides an extensive preference API but it does not rely on system properties to get the default values, not does it have a configuration file of a sort. HttpClient it is expected to be configured programmatically by its service consumers. > > I've tried to add "-Dhttp.protocol.single-cookie-header=true" to my command > > line, but it doesn't seem to be taking effect? > > The only option you have is to implement a custom cookie spec and register it as the default cookie policy. Hope this helps somewhat. Cheers, Oleg > > Thanks in advance, > > Jim > > > Hi, > > I forgot to include some background: I'm working with an application for > which I don't have the source, and it is sending multiple "Cookie:" HTTP > headers to my server, which seems to be causing a problem. > > I wanted to try to test where the multiple cookie string would be combined > into a single HTTP "Cookie:" header, but I need to do this without having to > get into the original (source) code. > > Thanks again, > Jim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
