mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-23 11:17:02 -04:00
Added curl params
This commit is contained in:
parent
a8a8fd14ac
commit
7fd7dced9a
1 changed files with 5 additions and 4 deletions
|
@ -46,10 +46,11 @@ def save_headers(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEOUT)
|
||||||
|
|
||||||
cmd = [
|
cmd = [
|
||||||
CURL_BINARY,
|
CURL_BINARY,
|
||||||
'-s',
|
'--silent',
|
||||||
'-I',
|
'--max-time', str(timeout),
|
||||||
'-X',
|
'--location',
|
||||||
'-D',
|
'--compressed',
|
||||||
|
'--head',
|
||||||
*(['--user-agent', '{}'.format(CURL_USER_AGENT)] if CURL_USER_AGENT else []),
|
*(['--user-agent', '{}'.format(CURL_USER_AGENT)] if CURL_USER_AGENT else []),
|
||||||
*([] if CHECK_SSL_VALIDITY else ['--insecure']),
|
*([] if CHECK_SSL_VALIDITY else ['--insecure']),
|
||||||
link.url,
|
link.url,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue