Apologies if this is well-known - a generalized search failed to explain 
the behaviour I'm seeing.

Using:

Apache/1.3.23 (Unix) Debian GNU/Linux mod_ssl/2.8.7 OpenSSL/0.9.6c 
mod_perl/1.26

I'm using a perl handler in which I create a session and bind it to a 
cookie if a session doesn't already exist, fetch some results from a 
database, put the results in the session, then redirect to another page 
that is responsible for pulling the results out of the session and 
producing the html output.  As a test case, I do exactly this:

   $r->header_out("Set-Cookie" => 'foo1=bar1');
   $r->header_out("Location" => $redir);
   return REDIRECT;

I use curl to test with - the result does not contain the Set-Cookie 
header.  Is it expected behaviour that redirection should blow away 
Set-Cookie headers, and I just have to find a different way to do this?

I'm pretty sure this isn't a caching issue since I'm using curl to 
initiate the test.

Am I barking up the wrong tree?

Thanks in advance for any help-

//Thomas
Thomas K. Burkholder

[cripplecreek:~/MyProjects/WebFetcher/build] burkhold% curl -i 
"http://www.areaj.org/areaj?pg=Search&imagesize=thumbnail&editCaptions=no&;
deleteMarkingControls=no&tableHeight=3&tableWidth=3&orderby=random&showExif=
no&showCaptions=none&save=no&navstyle=slideshowauto&showSizeChange=no&editSelection=
no&showNavButtons=no&captionsarea=&editImages=no&showBasic=no&markForDelete=
no&autoInterval=120"
HTTP/1.1 302 Found
Date: Fri, 12 Apr 2002 18:12:37 GMT
Server: Apache/1.3.23 (Unix) Debian GNU/Linux mod_ssl/2.8.7 
OpenSSL/0.9.6c mod_perl/1.26
Location: 
areaj?pg=GenPage&foo=bar&pg=Search&imagesize=thumbnail&editCaptions=no&deleteMarkingControls=
no&tableHeight=3&tableWidth=3&orderby=random&showExif=no&showCaptions=none&
save=no&navstyle=slideshowauto&showSizeChange=no&editSelection=no&showNavButtons=
no&captionsarea=&editImages=no&showBasic=no&markForDelete=no&autoInterval=
120
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A 
HREF="areaj?pg=GenPage&amp;foo=bar&amp;pg=Search&amp;imagesize=thumbnail&amp;
editCaptions=no&amp;deleteMarkingControls=no&amp;tableHeight=3&amp;tableWidth=
3&amp;orderby=random&amp;showExif=no&amp;showCaptions=none&amp;save=no&amp;
navstyle=slideshowauto&amp;showSizeChange=no&amp;editSelection=no&amp;showNavButtons=
no&amp;captionsarea=&amp;editImages=no&amp;showBasic=no&amp;markForDelete=
no&amp;autoInterval=120">here</A>.<P>
</BODY></HTML>
[cripplecreek:~/MyProjects/WebFetcher/build] burkhold%


Reply via email to