Taras,
On Mon, Feb 8, 2010 at 7:07 PM, Taras <[email protected]> wrote:
> Hello, all!
>
>
> I have 2 questions:
>
> 1. FuzzableRequest class have 2 vars called _dc and _data. What differences
> in purpose and usage of these vars?
- "_dc" contains the data container. Usually a map that holds
information like this:
{'a': ['b',] , 'c': ['d',]}
- "_data" is the string representation of the above:
a=b&c=d
The "_dc" has the form of a map with lists as values in order to
support repeated parameter names like "a=b&a=33".
> 2. we have function called uri2url:
>
> def uri2url( url):
> '''
> �...@parameter url: The url with the query string.
> �...@return: Returns a string contaning the URL without the query string.
> Example :
> - input url : http://localhost/foo.asp?xx=yy&bb=dd#fragment
> - output url string : http://localhost/foo.asp
> '''
> scheme, domain, path, params, qs, fragment = _uparse.urlparse( url )
> res = scheme + '://' + domain + path
> if params != '':
> res += ";" + params
> return res
>
>
> Why do we suggest that URL == URI - "query string"?
Are you proposing a parameter name change from url to uri? If so,
I agree. The result would be:
def uri2url( uri ):
'''
@parameter uri: The uri with the query string.
@return: Returns a string contaning the URL without the query
string. Example :
- input uri : http://localhost/foo.asp?xx=yy&bb=dd#fragment
- output url string : http://localhost/foo.asp
'''
scheme, domain, path, params, qs, fragment = _uparse.urlparse( uri )
res = scheme + '://' + domain + path
if params != '':
res += ";" + params
return res
If you're not suggesting this, I don't understand your question :(
Cheers,
>
>
>
> --
> Taras
> --
> "Software is like sex: it's better when it's free.", - Linus Torvalds.
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> W3af-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/w3af-develop
>
>
--
Andrés Riancho
Founder, Bonsai - Information Security
http://www.bonsai-sec.com/
http://w3af.sf.net/
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
W3af-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/w3af-develop