Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
16679b57
Commit
16679b57
authored
May 31, 2016
by
neil
Browse files
add more debug info
parent
6e180343
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
16679b57
...
@@ -590,6 +590,7 @@ _post() {
...
@@ -590,6 +590,7 @@ _post() {
else
else
response
=
"
$(
$_CURL
-A
"User-Agent:
$USER_AGENT
"
-X
$httpmethod
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
--data
"
$body
"
"
$url
"
)
"
response
=
"
$(
$_CURL
-A
"User-Agent:
$USER_AGENT
"
-X
$httpmethod
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
--data
"
$body
"
"
$url
"
)
"
fi
fi
_ret
=
"
$?
"
else
else
if
[
"
$needbase64
"
]
;
then
if
[
"
$needbase64
"
]
;
then
if
[
"
$httpmethod
"
=
"POST"
]
;
then
if
[
"
$httpmethod
"
=
"POST"
]
;
then
...
@@ -604,10 +605,12 @@ _post() {
...
@@ -604,10 +605,12 @@ _post() {
response
=
"
$(
$WGET
-S
-O
-
--user-agent
=
"
$USER_AGENT
"
--header
"
$_H4
"
--header
"
$_H3
"
--header
"
$_H2
"
--header
"
$_H1
"
--method
$httpmethod
--body-data
=
"
$body
"
"
$url
"
2>
"
$HTTP_HEADER
"
)
"
response
=
"
$(
$WGET
-S
-O
-
--user-agent
=
"
$USER_AGENT
"
--header
"
$_H4
"
--header
"
$_H3
"
--header
"
$_H2
"
--header
"
$_H1
"
--method
$httpmethod
--body-data
=
"
$body
"
"
$url
"
2>
"
$HTTP_HEADER
"
)
"
fi
fi
fi
fi
_ret
=
"
$?
"
_sed_i
"s/^ *//g"
"
$HTTP_HEADER
"
_sed_i
"s/^ *//g"
"
$HTTP_HEADER
"
fi
fi
_debug
"_ret"
"
$_ret
"
printf
"%s"
"
$response
"
printf
"%s"
"
$response
"
return
$_ret
}
}
# url getheader
# url getheader
...
...
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