2

I am doing some validation on URLs and I can not find a good example to express the params part of the returned tuple from urlparse().

From https://docs.python.org/2/library/urlparse.html :

>>> from urlparse import urlparse
>>> o = urlparse('http://www.cwi.nl:80/%7Eguido/Python.html')
>>> o   
ParseResult(scheme='http', netloc='www.cwi.nl:80', path='/%7Eguido/Python.html',
        params='', query='', fragment='')

I have done my best, SO and Goog searches are not finding success.

Marc
  • 1,895
  • 18
  • 25
  • 1
    See [this answer](http://stackoverflow.com/questions/2163803/what-is-the-semicolon-reserved-for-in-urls) for an explanation. The `params` refer to a very rarely used feature to include semicolon separated parameters in URIs. – Lukas Graf Mar 05 '15 at 20:16
  • 1
    answered [here](http://stackoverflow.com/questions/10988614/what-are-the-url-parameters-element-at-position-3-in-urlparse-result) – akgill Mar 05 '15 at 20:18
  • OMG thanks so much, I figured as much. Maybe my phrasing will help others find the answer. – Marc Mar 05 '15 at 20:26

0 Answers0