CGI-Minimal
view release on metacpan or search on metacpan
lib/CGI/Minimal.pod view on Meta::CPAN
=over 4
=item param_mime([$fieldname]);
Called as C<$cgi-E<gt>param_mime();> it returns the list of all defined
form fields in the same order they appear in the data from the
user agent.
Called as C<$cgi-E<gt>param_mime($fieldname);> it returns the MIME
type (or array of MIME types for multiple occurances of the same field
name) assigned to that $fieldname. If there is more than one value, the
values are returned in the same order they appeared in the data from user
agent.
This is only meaningful when doing Form Based File Uploads and
should probably not be trusted even then since it depends on the
_browser_ correctly identifying what it is sending.
=back
=cut
=over 4
=item param_filename([$fieldname]);
Called as C<$cgi-E<gt>param_filename();> it returns the list of all
defined form fields in the same order they appear in the data from the
user agent.
Called as C<$cgi-E<gt>param_filename($fieldname);> it returns the
file name (or array of file names for multiple occurances of the same field
name) assigned to that $fieldname. If there is more than one value, the
values are returned in the same order they appeared in the data from user
agent.
This is only meaningful when doing Form Based File Uploads.
=back
=cut
=over 4
=item raw;
Returns a copy of the raw form data. Returns 'undef' if the form
has not been parsed yet.
=back
=cut
=over 4
=item date_rfc1123($time);
Takes a unix time tick value and returns a RFC1123 compliant date
as a formatted text string suitable for direct use in Expires,
Last-Modified or other HTTP headers (with the exception of
'Set-Cookie', which requires a different format not generated
here. See 'CGI::Cookie' for cookie generation).
Example:
print "Expires: ",$cgi->date_rfc1123(time + 3600),"\015\012";
=back
=cut
=over 4
=item calling_parms_table;
Returns a formatted HTML table containing all the form and environment
variables for debugging purposes
Example:
print $cgi->calling_parms_table;
=back
=cut
=over 4
=item url_encode($string);
Returns URL encoding of input string (URL unsafe codes are
escaped to %xx form)
Example:
my $url_encoded_string = $cgi->url_encode($string);
=back
=cut
=over 4
=item url_decode($string);
Returns URL *decoding* of input string (%xx and %uxxxx substitutions
are decoded to their actual values).
Example:
my $url_decoded_string = $cgi->url_decode($string);
=back
=cut
=over 4
=item htmlize($string);
Returns HTML 'safe' encoding of input string. Replaces &,>,< and "
with their named entity codes (&, > < and ")
( run in 1.310 second using v1.01-cache-2.11-cpan-6aa56a78535 )