1
0
Fork 0

make curl honour redirects

This commit is contained in:
hnrd 2023-02-17 15:43:57 +01:00
parent 5be901062b
commit 0d43e6f505
2 changed files with 10 additions and 10 deletions

View File

@ -22,7 +22,7 @@ while true
echo "[INFO] RUN-FIREHOSE: Posting $uri"
## Send it to the fake relay as a background job
curl -X "POST" "$fakeRelayHost" \
curl -L -X "POST" "$fakeRelayHost" \
-H "Authorization: Bearer $fakeRelayKey" \
-H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
--data-urlencode "statusUrl=$uri" \

View File

@ -31,7 +31,7 @@ do
then
#Not in archive mode
curl -X "GET" "$url" \
curl -L -X "GET" "$url" \
--no-progress-meter | \
tee -a "/data/$today.json" | \
grep url | \
@ -56,7 +56,7 @@ do
mkdir -p "/data/$today/"
fi
curl -X "GET" "$url" --no-progress-meter >> "/data/$today/$today.$host.json"
curl -L -X "GET" "$url" --no-progress-meter >> "/data/$today/$today.$host.json"
fi
# Basic exponential backoff