Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
Description
urlparse() is similar tourlsplit(), but additionally it splitspath onpath andparams using the ";" separator. This is wrong. First, the corresponding RFCs (RFC 3986,RFC 8820) do not list "params" as a separate URI component. Second, the ";" separator is used to specify parameters for a path segment, not the whole path. And this is scheme-specific, most schemes don't use it or use "," for similar purpose. It is mentioned in RFC 3986, but not in RFC 8820.
So, it is better to useurlsplit() and then parsepath if needed. I afraid that most users ofurlparse() are not aware of this, and only use it because it have more attractive name thanurlsplit().
We should clearly documenturlparse() as obsolete.
Metadata
Metadata
Assignees
Projects
Status