Cgi.rb - sending same named headers

Does cgi.rb have the ability to send two headers of the same name? For
cache-control reasons, my application needs to send these two headers to the
browser:

Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0"

Using this code:

require ‘cgi’
aSession = CGI::new
aSession.out (
‘Cache-Control’ => ‘no-store, no-cache, must-revalidate’,
‘Cache-Control’ => ‘post-check=0, pre-check=0’) {’’}

Results in:

Content-Type: text/html
Content-Length: 0
Cache-Control: post-check=0, pre-check=0

Does cgi.rb need to be modified to allow same named headers, or is there
some option that I am missing?

···


Dennis Sutch

Doesnt does the following what you want?

require ‘cgi’
aSession = CGI::new
aSession.out (
‘Cache-Control’ => ‘no-store, no-cache, must-revalidate, post-check=0, pre-check=0’) {‘’}

-billy.

···

On Tue, Jul 09, 2002 at 04:37:27AM +0900, Dennis Sutch wrote:

Does cgi.rb have the ability to send two headers of the same name? For
cache-control reasons, my application needs to send these two headers to the
browser:

Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0"

Using this code:

require ‘cgi’
aSession = CGI::new
aSession.out (
‘Cache-Control’ => ‘no-store, no-cache, must-revalidate’,
‘Cache-Control’ => ‘post-check=0, pre-check=0’) {‘’}


Meisterbohne Söflinger Straße 100 Tel: +49-731-399 499-0
eLösungen 89077 Ulm Fax: +49-731-399 499-9