Skip to content

HTTP error handling in w3af

andresriancho edited this page Sep 4, 2014 · 5 revisions

Exceptions

  • Sub-classes of urllib2.URLError are raised by w3af when one HTTP request fails

  • HTTPRequestException is raised by w3af when one HTTP request fails

  • ScanMustStopException is raised by the extended_urllib.py when multiple HTTP requests fail in a row, potentially indicating that the remote server is unreachable.

  • ScanMustStopByUserRequest is a subclass of ScanMustStopException which is raised when we want to stop the scan. This exception is raised by the extended_urllib.py only when the user clicks "stop" in the UI.

Key code sections where exceptions are raised

Key code sections where exceptions are handled