Some shit.
This commit is contained in:
40
grpoppro
40
grpoppro
@@ -68,6 +68,7 @@ function curlRequest {
|
|||||||
|
|
||||||
if [[ "$DEBUG" == "off" ]]; then
|
if [[ "$DEBUG" == "off" ]]; then
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||||
response="$(curl_ff117 -s -L \
|
response="$(curl_ff117 -s -L \
|
||||||
-c"$GRPOPPRO_COOKIE_FILE" \
|
-c"$GRPOPPRO_COOKIE_FILE" \
|
||||||
-b"$GRPOPPRO_COOKIE_FILE" \
|
-b"$GRPOPPRO_COOKIE_FILE" \
|
||||||
@@ -81,15 +82,26 @@ function curlRequest {
|
|||||||
-H "$UP_IN_REQ" \
|
-H "$UP_IN_REQ" \
|
||||||
"$@"
|
"$@"
|
||||||
)"
|
)"
|
||||||
|
else
|
||||||
|
response="$(curl -s -L \
|
||||||
|
-c "$GRPOPPRO_COOKIE_FILE" \
|
||||||
|
-b "$GRPOPPRO_COOKIE_FILE" \
|
||||||
|
"$url" \
|
||||||
|
--compressed \
|
||||||
|
-X "$custom_method" \
|
||||||
|
-A "$USER_AGENT" \
|
||||||
|
-H "$custom_accept" \
|
||||||
|
-H "$ACCEPT_LANGUAGE" \
|
||||||
|
-H "$CONNECTION" \
|
||||||
|
-H "$UP_IN_REQ" \
|
||||||
|
"$@"
|
||||||
|
)"
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||||
LOG_FILE="/tmp/grpoppro_curl_commands.log"
|
LOG_FILE="/tmp/grpoppro_curl_commands.log"
|
||||||
else
|
|
||||||
LOG_FILE="$GRPOPPRO_DATA_DIR/grpoppro_curl_commands.log"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local curl_command=(
|
local curl_command=(
|
||||||
"curl_ff117"
|
"curl_ff117"
|
||||||
"-s"
|
"-s"
|
||||||
@@ -102,6 +114,26 @@ function curlRequest {
|
|||||||
"-H $custom_accept"
|
"-H $custom_accept"
|
||||||
"$@"
|
"$@"
|
||||||
)
|
)
|
||||||
|
else
|
||||||
|
LOG_FILE="$GRPOPPRO_DATA_DIR/grpoppro_curl_commands.log"
|
||||||
|
local curl_command=(
|
||||||
|
"curl"
|
||||||
|
"-s"
|
||||||
|
"-L"
|
||||||
|
"-c $GRPOPPRO_COOKIE_FILE"
|
||||||
|
"-b $GRPOPPRO_COOKIE_FILE"
|
||||||
|
"$url"
|
||||||
|
"--compressed"
|
||||||
|
"-X"
|
||||||
|
"$custom_method"
|
||||||
|
"-A $USER_AGENT"
|
||||||
|
"-H $custom_accept"
|
||||||
|
"-H $ACCEPT_LANGUAGE"
|
||||||
|
"-H $CONNECTION"
|
||||||
|
"-H $UP_IN_REQ"
|
||||||
|
"$@"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
echo -e "<===========================\n"
|
echo -e "<===========================\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user