https://issues.apache.org/bugzilla/show_bug.cgi?id=48295

Jie Gao <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Jie Gao <[email protected]> 2009-11-28 17:47:34 UTC ---
Script setting the cookie:

#!/usr/bin/perl -w

use strict;
use CGI;

my $q = new CGI;

my $cookie_1 = $q->cookie(-name=>'jie_COOKIE_1',
    -value=>'BEST_COOKIE=chocolatechip',
    -domain=>'www-dev.xxxxxx.xxx.xx',
    -path=>'/cgi-bin');

print $q->header(-cookie=>$cookie_1);


print $q->start_html('My cookie-set.cgi program');
print $q->h3('The cookie has been set');

print $q->end_html;
-----------------------------------------------------

Running it directly to the backend server


HTTP/1.0 200 OK
Date: Sun, 29 Nov 2009 01:42:56 GMT
Server: Apache/2.2.3 (Red Hat)
Set-Cookie: jie_COOKIE_1=BEST_COOKIE%3Dchocolatechip; domain=xxx.xxx.xxx;
path=/cgi-bin
Content-Type: text/html; charset=ISO-8859-1
X-Cache: MISS from www-cacheE.xxx.xxx.xx
X-Cache-Lookup: MISS from www-cacheE.xxx.xxx.xx:8080
Via: 1.0 www-cacheE.xxx.xxx.xx:8080 (squid/2.6.STABLE5)
Proxy-Connection: close

Running it on the rp server:

HTTP/1.0 200 OK
Date: Sun, 29 Nov 2009 01:46:24 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Type: text/html; charset=utf-8
Set-Cookie: jie_COOKIE_1=BEST_COOKIE%3Dchocolatechip;
domain=www-dev.xxx.xxx.xx; path=/sss/
X-Cache: MISS from www-cacheE.xxxx.xxx.xx
X-Cache-Lookup: MISS from www-cacheE.xxx.xxx.xx:8080
Via: 1.0 www-cacheE.xxx.xx.xx:8080 (squid/2.6.STABLE5)
Proxy-Connection: close

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to