[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] calling header_props multiple times (patch)


Hi,

I have a need in my CGI::Application modules to call header_props multiple times in one request. This currently doesn't work, as a second call to header_props
currently clobbers any previous data.

I agree.
We need this.
I patched all my local CGI::Applications for the same reason.

use this functionality for setting Cookies in the cgiapp_prerun hook (for
authentication), but then I may want to call a redirect or change the
content-type later in the code in one of the run modes.

I am doing the same thing.
Seems we have a real use case here :-)
In fact, I set Cookies multiple times as well, so I also added a method to set single cookies (rather than overwriting the old cookies when making a new cookie header). This functionality might also be considered for inclusion into CGI::Application (although I agree that it is a bit too application-specific).

Thanks for bringing this up,

Thilo


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.