mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 05:42:43 +00:00
debug level 2 required to see curl output
This commit is contained in:
parent
4880297e5c
commit
acc7c235ca
8
acme.sh
8
acme.sh
@ -492,12 +492,12 @@ _post() {
|
|||||||
if [ "$needbase64" ] ; then
|
if [ "$needbase64" ] ; then
|
||||||
response="$($CURL -A "User-Agent: $USER_AGENT" -X POST --data "$body" $url | _base64)"
|
response="$($CURL -A "User-Agent: $USER_AGENT" -X POST --data "$body" $url | _base64)"
|
||||||
if [[ $? -gt 0 ]] ;then
|
if [[ $? -gt 0 ]] ;then
|
||||||
_err "Curl failed with exit code $?, trying running script in DEBUG=1 mode"
|
_err "Curl failed with exit code $?, trying running script in DEBUG=2 mode"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
response="$($CURL -A "User-Agent: $USER_AGENT" -X POST --data "$body" $url)"
|
response="$($CURL -A "User-Agent: $USER_AGENT" -X POST --data "$body" $url)"
|
||||||
if [[ $? -gt 0 ]] ;then
|
if [[ $? -gt 0 ]] ;then
|
||||||
_err "Curl failed with exit code $?, trying running script in DEBUG=1 mode"
|
_err "Curl failed with exit code $?, trying running script in DEBUG=2 mode"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@ -521,12 +521,12 @@ _get() {
|
|||||||
if [ "$onlyheader" ] ; then
|
if [ "$onlyheader" ] ; then
|
||||||
$CURL -I -A "User-Agent: $USER_AGENT" $url
|
$CURL -I -A "User-Agent: $USER_AGENT" $url
|
||||||
if [[ $? -gt 0 ]] ;then
|
if [[ $? -gt 0 ]] ;then
|
||||||
_err "Curl failed with exit code $?, trying running script in DEBUG=1 mode"
|
_err "Curl failed with exit code $?, trying running script in DEBUG=2 mode"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
$CURL -A "User-Agent: $USER_AGENT" $url
|
$CURL -A "User-Agent: $USER_AGENT" $url
|
||||||
if [[ $? -gt 0 ]] ;then
|
if [[ $? -gt 0 ]] ;then
|
||||||
_err "Curl failed with exit code $?, trying running script in DEBUG=1 mode"
|
_err "Curl failed with exit code $?, trying running script in DEBUG=2 mode"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user