Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: uri and file names

by ferreira (Chaplain)
on Apr 03, 2007 at 18:35 UTC ( #608126=note: print w/replies, xml ) Need Help??


in reply to uri and file names

Anno's solution is just what you need. URI-escaping is used at URI's to reduce the character set a browser needs to understand as input and reduce interpretation problems (with spaces and special characters). Then "boo%20hoo.xls" would generally bring it up a resource with a name like "boo hoo.xls". But if your files have been named after URI-escaping, you need to repeat the process because "%" is special now. That's why you need to URI::Escape again.

That reminded me of an article by Robert Spier (A Canary Trap for URI Escaping) on how they handled the problem of multiply-escaped URIs for the Bitcard sign-on system with the help of "canary traps".

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2019-03-18 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (89 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!