Commit 16679b57 authored by neil's avatar neil
Browse files

add more debug info

parent 6e180343
......@@ -590,6 +590,7 @@ _post() {
else
response="$($_CURL -A "User-Agent: $USER_AGENT" -X $httpmethod -H "$_H1" -H "$_H2" -H "$_H3" -H "$_H4" --data "$body" "$url" )"
fi
_ret="$?"
else
if [ "$needbase64" ] ; then
if [ "$httpmethod"="POST" ] ; then
......@@ -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")"
fi
fi
_ret="$?"
_sed_i "s/^ *//g" "$HTTP_HEADER"
fi
_debug "_ret" "$_ret"
printf "%s" "$response"
return $_ret
}
# url getheader
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment