1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-18 20:31:38 +02:00

Added curl params

This commit is contained in:
Angel Rey
2020-09-11 14:28:04 -05:00
committed by Cristian Vargas
parent a8a8fd14ac
commit 7fd7dced9a

View File

@@ -46,10 +46,11 @@ def save_headers(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEOUT)
cmd = [
CURL_BINARY,
'-s',
'-I',
'-X',
'-D',
'--silent',
'--max-time', str(timeout),
'--location',
'--compressed',
'--head',
*(['--user-agent', '{}'.format(CURL_USER_AGENT)] if CURL_USER_AGENT else []),
*([] if CHECK_SSL_VALIDITY else ['--insecure']),
link.url,