Some shit.
This commit is contained in:
40
grpoppro
40
grpoppro
@@ -68,6 +68,7 @@ function curlRequest {
|
||||
|
||||
if [[ "$DEBUG" == "off" ]]; then
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
response="$(curl_ff117 -s -L \
|
||||
-c"$GRPOPPRO_COOKIE_FILE" \
|
||||
-b"$GRPOPPRO_COOKIE_FILE" \
|
||||
@@ -81,15 +82,26 @@ function curlRequest {
|
||||
-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
|
||||
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user