Implements option --csrf-data (#5199)

This commit is contained in:
Miroslav Stampar
2022-10-17 11:52:22 +02:00
parent d7ee423fc5
commit aa9cc3987e
6 changed files with 13 additions and 2 deletions

View File

@@ -276,6 +276,9 @@ def cmdLineParser(argv=None):
request.add_argument("--csrf-method", dest="csrfMethod",
help="HTTP method to use during anti-CSRF token page visit")
request.add_argument("--csrf-data", dest="csrfData",
help="POST data to send during anti-CSRF token page visit")
request.add_argument("--csrf-retries", dest="csrfRetries", type=int,
help="Retries for anti-CSRF token retrieval (default %d)" % defaults.csrfRetries)