perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven D. Arnold" <stev...@permanent.cc>
Subject RE: more udat persistence issues
Date Sat, 07 Apr 2001 20:32:20 GMT
<html>
At 05:16 AM 5/17/2000 +0200, Gerald Richter wrote:<br>
<blockquote type=cite cite>Hi,<br>
<br>
&gt; SetEnv EMBPERL_COOKIE_EXPIRES 10<br>
<br>
unfortunately Embperl cannot handle relativ expire times. It just passes the<br>
value you set in EMBPERL_COOKIE_EXPIRES in the http header to the browser,<br>
so it must be the full date. Remove the above line from your config and it<br>
should work. In this case the browser forgets the cookie when it is closed<br>
by the user.</blockquote><br>
I did this.&nbsp; Unfortunately, the problem is still occurring.&nbsp; I forgot to
mention something potentially of importance last time: the udat information seems to propagate
correctly when I submit a form; the problem arises when I click a link.&nbsp; I did a
packet capture of the transaction when I clicked the link; the results are below.<br>
<br>
The request:<br>
<br>
GET /embperl/monitor/dosearch.shtml?start_item=10&amp;num_items=10 HTTP/1.0<br>
Accept: */*<br>
Accept-Language: en-us<br>
Host: 192.168.250.207<br>
Via: 1.0 proxy3.trusecure.net:80 (Squid/2.0.RELEASE)<br>
X-Forwarded-For: unknown<br>
Cache-Control: max-age=259200<br>
Connection: keep-alive<br>
<br>
And the response:<br>
<br>
HTTP/1.1 200 OK<br>
Date: Wed, 17 May 2000 14:37:04 GMT<br>
Server: Apache/1.3.12 (Unix) mod_perl/1.22<br>
Content-Length: 8793<br>
Keep-Alive: timeout=15, max=100<br>
Connection: Keep-Alive<br>
Content-Type: text/html;charset=iso-8859-1<br>
<br>
Incidentally, even though I have set EMBPERL_DEBUG to 2369773, I never see any information
on cookies, even in cases where udat is clearly working.&nbsp; Here's an illustration.&nbsp;
Below, I do a packet capture for a transaction where udat works.&nbsp; First I show the
headers as revealed by the packet capture, then I show the headers as indicated by Embperl's
log file.<br>
<br>
The request:<br>
<br>
POST /embperl/monitor/dosearch.shtml HTTP/1.0<br>
Accept: */*<br>
Accept-Language: en-us<br>
Content-Type: application/x-www-form-urlencoded<br>
Host: 192.168.250.207<br>
Content-Length: 164<br>
Pragma: no-cache<br>
Via: 1.0proxy3.trusecure.net:80 (Squid/2.0.RELEASE)<br>
X-Forwarded-For: unknown<br>
Cache-Control: max-age=259200<br>
Connection: keep-alive<br>
<br>
And the server's response:<br>
<br>
HTTP/1.1 200 OK<br>
Date: Wed, 17 May 2000 14:46:15 GMT<br>
Server: Apache/1.3.12 (Unix) mod_perl/1.22<br>
Content-Length: 82917<br>
Keep-Alive: timeout=15, max=99<br>
Connection: Keep-Alive<br>
Content-Type:text/html;charset=iso-8859-1<br>
<br>
<br>
The Embperl log shows:<br>
<br>
[508]HDR: 10<br>
[508]HDR: Accept=*/*<br>
[508]HDR: Accept-Language=en-us<br>
[508]HDR: Cache-Control=max-age=259200<br>
[508]HDR: Connection=keep-alive<br>
[508]HDR: Content-Length=164<br>
[508]HDR: Content-Type=application/x-www-form-urlencoded<br>
[508]HDR: Host=192.168.250.207<br>
[508]HDR: Pragma=no-cache<br>
[508]HDR: Via=1.0 proxy3.trusecure.net:80 (Squid/2.0.RELEASE)<br>
[508]HDR: X-Forwarded-For=unknown<br>
<br>
At least this is consistent -- but where is the cookie that udat uses??&nbsp; And this
is a case where the persistent information of udat successfully propagated.<br>
<br>
I admit I am completely lost at this point.&nbsp; I don't even know how Embperl does what
it does when it works, much less why it fails.&nbsp; Shouldn't the browser be sending
a Cookie: HTTP header in its request?<br>
<br>
Any ideas or thoughts welcome.<br>
<br>
<br>
steve<br>
</html>



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message