Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: CGI-class changes + to space for BASE64-data

by Pickwick (Beadle)
on Dec 01, 2010 at 10:53 UTC ( [id://874640]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI-class changes + to space for BASE64-data
in thread CGI-class changes + to space for BASE64-data

Since Base64 data is often rather long anyway, a possible solution is to not use URL parameters for them, but instead POST parameters.

I get the data via a http redirect and the BASE64 data is just a signature for the other parameter values, therefore it's not that large at all.

You can still customize it for just one app, either by inheritance (for OO code), or by wrapping (for procedural code). AUTOLOAD can help you with automtic wrapping.

I think I will subclass CGI directly and store the needed logic in my own class, because the problem doesn't only occur in the templates, but also if one wants to read the parameter value directly in a program. It's just parse_params which needs to get changed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://874640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-03-19 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found