GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  BADGER::CODEC::URL (3)

.ds Aq ’

NAME

Badger::Codec::URL - URL encode/decode

CONTENTS

SYNOPSIS



    use Badger::Codec::URL;
    my $codec   = Badger::Codec::URL->new();
    my $encoded = $codec->encode("Hello World!");
    my $decoded = $codec->decode($encoded);



DESCRIPTION

This module implements a subclass of Badger::Codec for URL encoding and decoding. Note the difference between URI and URL. URI encoding is strict and encodes characters like ;, ? and /. The URL codec is more lax and does not encode these characters.

The URI codec should be used for encoding URL parameters. The URL codec can be used to encode complete URLs.

FUNCTIONS

    encode_url($data)

This function URL-encodes the $data passed as an argument.

    decode_url($data)

This function URL-decodes the $data passed as an argument.

METHODS

    encode($data)

This method URL-encodes the data referenced by the first argument. It delegates to the encode_url() function.



    $encoded = Badger::Codec::URL->encode($data);



    decode($data)

This method decodes the encoded data passed as the first argument. It delegates to the decode_url() function.



    $decoded = Badger::Codec::URL->decode($encoded);



encoder()

This method returns a reference to the encode_url() function.

decoder()

This method returns a reference to the decode_url() function.

AUTHOR

Andy Wardley <http://wardley.org/>

COPYRIGHT

Copyright (C) 2008-2009 Andy Wardley. All rights reserved.

SEE ALSO

Badger::Codecs, Badger::Codec
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 BADGER::CODEC::URL (3) 2012-01-23

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.