Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks
I have URLs like the following one
http://www.bing.com/cr?IG=E1B087FDC4A64C13B6B6F56EE3AA3510&CID=04F7052 +A8A496C5127170CFC8BAE6DD4&rd=1&h=mRcJ09asL7Bb7lrqFpfdvPQYVwtg1d5J6vMW +CRwXbAk&v=1&r=http%3a%2f%2fwww.raiscuola.rai.it%2farticoli%2fstato-de +lla-ricerca-scientifica-in-italia%2f19049%2fdefault.aspx&p=DevEx,5328 +.1
This, lets face it, looks pretty bad. What I want to do is to "clean" it. By cleaning I mean getting the final URL which is contained in the long one. In our case
"http://www.raiscuola.rai.it/articoli/stato-della-ricerca-scientifica- +in-italia/19049/default.aspx"
I am not an expert in URL, URI and the likes but if I put the long URL in any Browser (tried Firefox, Edge), it will "clean" it automatically showing the final (shorter and readable) URL.
Any module to achive this? I was not succesful to find any. Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Cleaning URL
by Your Mother (Archbishop) on Nov 23, 2016 at 17:26 UTC | |
by Anonymous Monk on Nov 23, 2016 at 18:28 UTC | |
Re: Cleaning URL
by neilwatson (Priest) on Nov 23, 2016 at 17:25 UTC |