Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions wikiteam3/dumpgenerator/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def getArgumentParser():
parser.add_argument(
"--http-pass", dest="http_password", help="Password if HTTP authentication is required."
)
parser.add_argument(
"--http-method", dest="http_method", default="POST", choices=["GET", "POST"], help="HTTP method to use when making API requests to the wiki (default: POST)"
)
parser.add_argument(
'--insecure', action='store_true', help='Disable SSL certificate verification'
)
Expand Down Expand Up @@ -277,7 +280,7 @@ def checkParameters(args=argparse.Namespace()) -> bool:
print(url)
print("ERROR: URLs must start with http:// or https://")
passed = False

return passed

def get_parameters(params=None) -> Tuple[Config, OtherConfig]:
Expand Down Expand Up @@ -520,7 +523,7 @@ def sleep(self, response=None):
date = datetime.datetime.now(datetime.timezone.utc).strftime("%Y%m%d"),
api = api,
failfast = args.failfast,
http_method = "POST",
http_method = args.http_method,
api_chunksize = int(args.api_chunksize),
index = index,
images = args.images,
Expand Down