Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
1ebc0f96
Commit
1ebc0f96
authored
Nov 18, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Dec 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added --trust-server-names to wget and curl (eterbug #17842)
parent
3f5c92d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
tools_eget
bin/tools_eget
+11
-5
No files found.
bin/tools_eget
View file @
1ebc0f96
...
...
@@ -315,11 +315,12 @@ WGETQ='' #-q
CURLQ
=
''
#-s
AXELQ
=
''
#-q
# TODO: aria2c
# TODO: wget --trust-server-names
# TODO:
WGETNAMEOPTIONS
=
'--content-disposition'
CURLNAMEOPTIONS
=
'--remote-name --remote-time --remote-header-name'
AXELNAMEOPTIONS
=
''
WGETRUSTSERVERNAMES
=
''
CURLTRUSTSERVERNAMES
=
''
WGETNODIRECTORIES
=
''
WGETCONTINUE
=
''
...
...
@@ -385,6 +386,7 @@ Options:
--latest - print only latest version of a file
--second-latest - print only second to latest version of a file
--allow-mirrors - check mirrors if url is not accessible
--trust-server-names - use the name specified by the redirection
--list|--list-only - print only URLs
--check-url URL - check if the URL exists (returns HTTP 200 OK)
...
...
@@ -535,6 +537,10 @@ while [ -n "$1" ] ; do
WGETRETRYCONNREFUSED
=
"
$1
"
CURLRETRYCONNREFUSED
=
"
$1
"
;;
--trust-server-names
)
WGETRUSTSERVERNAMES
=
"--trust-server-names"
CURLTRUSTSERVERNAMES
=
"-w '%{url_effective}'"
;;
-t
|
--tries
)
if
[
-z
"
$argvalue
"
]
;
then
shift
...
...
@@ -1032,9 +1038,9 @@ elif [ "$EGET_BACKEND" = "wget" ] ; then
__wget
()
{
if
[
-n
"
$WGETUSERAGENT
"
]
;
then
docmd
$WGET
$FORCEIPV
$WGETQ
$WGETCOMPRESSED
$WGETHEADER
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
"
$WGETUSERAGENT
"
"
$@
"
docmd
$WGET
$FORCEIPV
$WGETQ
$WGETCOMPRESSED
$WGETHEADER
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
"
$WGETUSERAGENT
"
"
$@
"
else
docmd
$WGET
$FORCEIPV
$WGETQ
$WGETCOMPRESSED
$WGETHEADER
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
"
$@
"
docmd
$WGET
$FORCEIPV
$WGETQ
$WGETCOMPRESSED
$WGETHEADER
$WGETNOSSLCHECK
$WGETNODIRECTORIES
$WGETCONTINUE
$WGETTIMEOUT
$WGETREADTIMEOUT
$WGETRETRYCONNREFUSED
$WGETTRIES
$WGETLOADCOOKIES
$WGETRUSTSERVERNAMES
"
$@
"
fi
}
...
...
@@ -1082,9 +1088,9 @@ elif [ "$EGET_BACKEND" = "curl" ] ; then
__curl
()
{
if
[
-n
"
$CURLUSERAGENT
"
]
;
then
docmd
$CURL
$FORCEIPV
--fail
-L
$CURLQ
$CURLCOMPRESSED
$CURLHEADER
$CURLNOSSLCHECK
$CURLCONTINUE
$CURLMAXTIME
$CURLRETRYCONNREFUSED
$CURLRETRY
$CURLCOOKIE
"
$CURLUSERAGENT
"
"
$@
"
docmd
$CURL
$FORCEIPV
--fail
-L
$CURLQ
$CURLCOMPRESSED
$CURLHEADER
$CURLNOSSLCHECK
$CURLCONTINUE
$CURLMAXTIME
$CURLRETRYCONNREFUSED
$CURLRETRY
$CURLCOOKIE
$CURLTRUSTSERVERNAMES
"
$CURLUSERAGENT
"
"
$@
"
else
docmd
$CURL
$FORCEIPV
--fail
-L
$CURLQ
$CURLCOMPRESSED
$CURLHEADER
$CURLNOSSLCHECK
$CURLCONTINUE
$CURLMAXTIME
$CURLRETRYCONNREFUSED
$CURLRETRY
$CURLCOOKIE
"
$@
"
docmd
$CURL
$FORCEIPV
--fail
-L
$CURLQ
$CURLCOMPRESSED
$CURLHEADER
$CURLNOSSLCHECK
$CURLCONTINUE
$CURLMAXTIME
$CURLRETRYCONNREFUSED
$CURLRETRY
$CURLCOOKIE
$CURLTRUSTSERVERNAMES
"
$@
"
fi
}
# put remote content to stdout
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment