www/p5-URI-Normalize 0.002 DragonFly
Normalize URIs according to RFC 3986
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1
- Categories
- perl5, www
- Package size
- 11.5 KiB, 43.9 KiB installed
Description
URI::Normalize normalizes URIs according to RFC 3986.
This has a number of useful applications in allowing URIs to be compared with fewer false negatives. For example, all of the following URIs will normalize to the same value:
HTTPS://www.example.com:443/../test/../foo/index.html https://WWW.EXAMPLE.COM/./foo/index.html https://www.example.com/%2566%256f%256f/index.html https://www.example.com/foo/index.html
That is, they will all be normalized into the last value.
Example:
use URI; use URI::Normalize qw( normalize_uri remove_dot_segments ); my $uri = URI->new('HTTPS://www.Example.com:443/../test/../foo/index.html');
say normalize_uri($uri); #> https://www.example.com/foo/index.html say remove_dot_segments($uri); #> HTTPS://www.Example.com:443/foo/index.html
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | www/p5-URI-Normalize | 0.002 |
| FreeBSD | www/p5-URI-Normalize | 0.002 |
| HardenedBSD | www/p5-URI-Normalize | 0.002 |
| GhostBSD | www/p5-URI-Normalize | 0.002 |
Install
Binary package:
pkg install p5-URI-Normalize
From DPorts:
cd /usr/dports/www/p5-URI-Normalize && make install clean
Dependencies
Run dependencies 2
No port depends on this one.