Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Normalizing URLs

by ikegami (Patriarch)
on Jul 21, 2005 at 15:45 UTC ( [id://476887]=note: print w/replies, xml ) Need Help??


in reply to Re: Normalizing URLs
in thread Normalizing URLs

From what I saw, URI

  • Lowercases the scheme.
  • Lowercases the domain name. (1)
  • Removes the port if it's the default. (2)
  • Removes port fields consisting of just ':'. (3)
  • Adds trailing '/' if no path or query is specified. (6, partial)

  • Doesn't do (4), (5), (7) and (8), but easy to do.
  • Doesn't do (9) and (10), but might not be possible.
  • Doesn't set the path to '/' if no path is specified and a query is specified. (6, partial)
  • Doesn't normalize IP addresses in to dotted form.
  • Doesn't remove the trailing '.' from domain names, if any.
  • Doesn't touch the query.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-20 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found