Some shit.

This commit is contained in:
2025-01-01 16:46:38 +02:00
parent 5726dabf09
commit 98b37597e0

View File

@@ -68,7 +68,22 @@ function curlRequest {
if [[ "$DEBUG" == "off" ]]; then
if [[ "$OSTYPE" == "linux-gnu" ]]; then
response="$(curl_ff117 -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" \
"$@"
)"
else
response="$(curl -s -L \
-c "$GRPOPPRO_COOKIE_FILE" \
-b "$GRPOPPRO_COOKIE_FILE" \
"$url" \
@@ -81,15 +96,12 @@ function curlRequest {
-H "$UP_IN_REQ" \
"$@"
)"
fi
else
if [[ "$OSTYPE" == "linux-gnu" ]]; then
LOG_FILE="/tmp/grpoppro_curl_commands.log"
else
LOG_FILE="$GRPOPPRO_DATA_DIR/grpoppro_curl_commands.log"
fi
local curl_command=(
"curl_ff117"
"-s"
@@ -102,6 +114,26 @@ function curlRequest {
"-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"