|
1 | 1 | """Parse (absolute and relative) URLs. |
2 | 2 |
|
3 | | -See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, |
4 | | -UC Irvine, June 1995. |
| 3 | +urlparse module is based upon the following RFC specifications. |
| 4 | +
|
| 5 | +RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding |
| 6 | +and L. Masinter, January 2005. |
| 7 | +
|
| 8 | +RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter |
| 9 | +and L.Masinter, December 1999. |
| 10 | +
|
| 11 | +RFC2396: "Uniform Resource Identifiers (URI)": Generic Syntax by T. |
| 12 | +Berners-Lee, R. Fielding, and L. Masinter, August 1998. |
| 13 | +
|
| 14 | +RFC2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zwinski, July 1998. |
| 15 | +
|
| 16 | +RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June |
| 17 | +1995. |
| 18 | +
|
| 19 | +RFC1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M. |
| 20 | +McCahill, December 1994 |
| 21 | +
|
| 22 | +RFC 3986 is considered the current standard and any changes to urlparse module |
| 23 | +should conform to this. urlparse module is not entirely compliant with this. |
| 24 | +The defacto scenarios of parsing are considered sometimes and for backward |
| 25 | +compatiblity purposes, older RFC uses of parsing are retained. The testcases in |
| 26 | +test_urlparse.py provides a good indicator of parsing behavior. |
5 | 27 | """ |
6 | 28 |
|
7 | 29 | import sys |
|
0 commit comments