Re: HTTP headers question

2005-11-13 Thread gerard such
Apparently it works :D However, it's very strange the headers that "my" server sends! Now there is a Last-Modified header that points to July?!?!? Also the ETAG tag is still there ... Anyway, it seems that effectively the two noisy tags are removed, and that the OK status is sent (if not i will di

Re: HTTP headers question

2005-11-13 Thread Geoffrey Young
> PerlHeaderParserHandler Blogum::BlogumHeaders::nocache > $r->err_headers_out->add('Pragma' => "no-cache"); > $r->err_headers_out->add('Cache-control' => "max-age=0"); > $r->err_headers_out->add('Cache-control' => "no-cache"); > $r->err_headers_out->add('Cache-con

Re: HTTP headers

2005-03-21 Thread Tuomo Salo
Octavian Rasnita wrote: print "Content-type: text/html\n\nTestare\n"; $q->redirect("http://localhost/";); This should print the Content-type: text/html header, then the word "testare" in the body, then the word "Location: http://localhost/";, but it doesn't happen this way. I think this is a "featu

Re: HTTP headers

2005-03-20 Thread David Dick
Octavian Rasnita wrote: Hi, I have tried the following script under Windows 2000, mod_perl 2, Perl 5.8.4: use strict; use CGI; my $q = new CGI; print "Content-type: text/html\n\nTestare\n"; $q->redirect("http://localhost/";); try use CGI(); use strict; use warnings; my $q = new CGI; print $q->redir

Re: HTTP headers - what is wrong

2004-07-30 Thread William McKee
Chris, Randall even has a column about this issue[1] from a couple years ago. HTH, William [1] http://www.stonehenge.com/merlyn/WebTechniques/col64.html -- Knowmad Services Inc. http://www.knowmad.com -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/ma

Re: HTTP headers - what is wrong

2004-07-30 Thread Jean-Michel Hiver
Chris Faust wrote: What would you suggest for a situation where a user is entering in their credit card information, using their back button and submitting again and then complaining about a double charge? I would suggest that you need to create some kind of transaction ticket. For example, (times

Re: HTTP headers - what is wrong

2004-07-30 Thread Chris Faust
a problem, there will be users out there that follow that exact route. -Chris - Original Message - From: "Jean-Michel Hiver" <[EMAIL PROTECTED]> To: "Chris Faust" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 27, 2004 5:53 PM Subject:

Re: HTTP headers - what is wrong

2004-07-30 Thread Chris Faust
Thanks Fred, that did the trick... -Chris - Original Message - From: <[EMAIL PROTECTED]> To: "Chris Faust" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 27, 2004 12:02 PM Subject: Re: HTTP headers - what is wrong > > Which works gr

Re: HTTP headers - what is wrong

2004-07-27 Thread Jean-Michel Hiver
Chris Faust wrote: Folks, I need to expire a page so if a user uses his back button, he will not be able to the previous page (which as a form etc.).. Sorry if this sounds troll-ish, but IMHO if your application is designed in such a way that you need to sacrifice standard browser functionality

Re: HTTP headers - what is wrong

2004-07-27 Thread fred
> Which works great, the problem is right before I print out any HTML, I > changed > > $CGI->header > to $r->send_http_header; The method $r->send_http_header() no longer exists in mod_perl 2.0. See the following link http://perl.apache.org/docs/2.0/user/porting/porting.html#Making_Code_Condition