hi i am trying to get the extension of the file called in a url (eg /wp-includes/js/jquery/jquery.js?ver=1.3.2 HTTP/1.1) and get the query parameters passed to the file too.
What would be the best way to the extension?
. rather than use os.path in this case, as a URL and a filepath are different things. Using os.path.splitext would go wrong on an operating system where the file extension separator isn't .. Admittedly there are vanishingly few of those today.urlparse().