This file is part of w3af, w3af.sourceforge.net .
w3af is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation version 2 of the License.
w3af is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License
along with w3af; if not, write to the Free Software Foundation, Inc., 51
Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
getQueryString(url,
ignoreExceptions=True)
Parses the query string and returns a dict. |
|
|
|
|
uri2url(url)
Returns:
Returns a string contaning the URL without the query string. |
|
|
|
|
removeFragment(url)
Returns:
Returns a string contaning the URL without the fragment. |
|
|
|
|
baseUrl(url)
Returns:
Returns a string contaning the URL without the query string and
without any path. |
|
|
|
|
normalizeURL(url)
This method was added to be able to avoid some issuess which are generated by the different way browsers and urlparser.urljoin
join the URLs. |
|
|
|
|
urlJoin(baseurl,
relative)
Construct a full (``absolute'') URL by combining a ``base URL''
(base) with a ``relative URL'' (url). |
|
|
|
|
getDomain(url)
Input: http://localhost:4444/f00_bar.html Output: localhost |
|
|
|
|
getNetLocation(url)
Input: http://localhost:4444/f00_bar.html Output:
localhost:4444 |
|
|
|
|
getProtocol(url)
Returns:
Returns the domain name for the url. |
|
|
|
|
|
|
|
getDomainPath(url)
Returns:
Returns the domain name and the path for the url. |
|
|
|
|
getFileName(url)
Returns:
Returns the filename name for the given url. |
|
|
|
|
getExtension(url)
Returns:
Returns the extension of the filename, if possible, else, ''. |
|
|
|
|
allButScheme(url)
Returns:
Returns the domain name and the path for the url. |
|
|
|
|
getPath(url)
@parameter url: The url to parse. |
|
|
|
|
|
|
|
urlDecode(url)
UrlDecode the url. |
|
|
|
|
|