[squid-users] Squid url_rewrite and cookie

2010-01-04 Thread Rajesh Nair
Hi, I have a squid deployed with a url_rewrite_program set to a perl script which rewrites certain requests. This is all working fine . I now want to be able to set a cookie along with the 302 response and I am not able to figure out how. Reading the docs , it looks like it is not possible to se

Re: [squid-users] Squid url_rewrite and cookie

2010-01-04 Thread Matt W. Benjamin
Hi, Yes, you cannot (could not) per se. However, you can rewrite to a cooperating HTTP service which sets a cookie. And, if you had adjusted Squid so as to pass cookie data to url_rewriter programs, you could also inspect the cookie in it on future requests. Matt - "Rajesh Nair" wrote

Re: [squid-users] Squid url_rewrite and cookie

2010-01-05 Thread Rajesh Nair
Thanks for the response, Matt! Unfortunately the "cooperating" HTTP service solution would not work as I need to set the cookie for the same domain for which the request is coming and that happens only when the request comes to the squid proxy. I have resolved it by extending the squid-url_rewrit

Re: [squid-users] Squid url_rewrite and cookie

2010-01-05 Thread Matt W. Benjamin
Hi, The way I conceived the url_rewrite protocol change (2004), the rewrite program a) got all http headers and b) could change headers. I hope you'll offer those capabilities, and please offer to squid-dev. These features are useful for reverse as well as forward proxy. No comment on redire

Re: [squid-users] Squid url_rewrite and cookie

2010-01-06 Thread Adrian Chadd
Please create an Issue and attach the patch. I'll see about including it! adrian 2010/1/6 Rajesh Nair : > Thanks for the response, Matt! > > Unfortunately the "cooperating" HTTP service solution would not work > as I need to set the cookie for the same domain for which the request > is coming