Haloric has asked for the wisdom of the Perl Monks concerning the following question:
I am using cgi.pm for the first time. I want to save() the request object to a file and use new CGI($saved) to create a copy when I need to (in a later http request).
The problem is that the save() only saves the state of the request params, not the env variables. I want things like remote_addr(), remote_host() and remote_user() to work on the restored object.
What is the most efficient way of doing this, is there something that already does it, or do I have to do it for myself.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Restoring CGI.pm object
by ccn (Vicar) on Oct 27, 2008 at 17:37 UTC | |
by Haloric (Novice) on Oct 27, 2008 at 17:51 UTC | |
by ccn (Vicar) on Oct 27, 2008 at 18:01 UTC | |
by jettero (Monsignor) on Oct 27, 2008 at 17:56 UTC | |
by Haloric (Novice) on Oct 27, 2008 at 18:07 UTC | |
by jettero (Monsignor) on Oct 27, 2008 at 19:43 UTC | |
|
Re: Restoring CGI.pm object
by jeffa (Bishop) on Oct 27, 2008 at 18:03 UTC |