Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Encoding/compress CGI GET parameters

by em (Scribe)
on Jan 18, 2001 at 04:10 UTC ( #52643=note: print w/replies, xml ) Need Help??


in reply to Encoding/compress CGI GET parameters

How about a non perl solution?

A lot of mail clients will do the right thing if a URL is enclosed in < >.

Meaning you email the URL as:
<http://www.server.com/cgi-bin/script/script.plParam1=Value&Param2=value&Param3=value>

If you still need to cut down the length of the URL, I would still look at just passing a session key with the URL and then doing a database lookup based on the key.

Also, rather than building the key lookup into the main cgi script, I suggest that you write a generic redirect script that does the look up.

Meaning, you send <http://www.server.com/cgi-bin/redir.pl?KKDIS47> and the script does a database look on KKDIS47 and then redirects to http://www.server.com/cgi-bin/script/script.plParam1=Value&Param2=value&Param3=value

  • Comment on Re: Encoding/compress CGI GET parameters

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2023-06-08 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?