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_rewrite protocol to accept the cookie string too and modifying the squid code to send the cookie in the 302 redirect response. Let me know if anybody is interested in the patch! Thanks, Rajesh On Tue, Jan 5, 2010 at 9:41 AM, Matt W. Benjamin <matt@xxxxxxxxxxxx> wrote: > 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" <rajesh.nair.in@xxxxxxxxx> wrote: > >> >> Reading the docs , it looks like it is not possible to send "any" >> HTTP >> response header from the url_rewriter program and the url_rewriter >> merely can return the redirected URI. >> Is this correct? >> >> Thanks, >> Rajesh > > -- > > Matt Benjamin > > The Linux Box > 206 South Fifth Ave. Suite 150 > Ann Arbor, MI 48104 > > http://linuxbox.com > > tel. 734-761-4689 > fax. 734-769-8938 > cel. 734-216-5309 >