From 4c7560053d37f518c4ae30728a9a2fa6c8defe27 Mon Sep 17 00:00:00 2001 From: squidbear <379651+czarly@users.noreply.github.com> Date: Mon, 31 Mar 2025 08:56:41 +0200 Subject: [PATCH] make mulitcurl follow redirects --- check-health.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-health.sh b/check-health.sh index 99a39d05..610885f9 100755 --- a/check-health.sh +++ b/check-health.sh @@ -42,7 +42,7 @@ if [ $? -eq 0 ]; then sleep 3 # to give the reference node more time to import the block if it is very current - http_status_code2=$($BASEPATH/multicurl.sh --ipv4 -m $timeout -s -X POST -w "%{http_code}" -o "$response_file2" -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"$latest_block_number\", false],\"id\":1}" $ref) + http_status_code2=$($BASEPATH/multicurl.sh -L --ipv4 -m $timeout -s -X POST -w "%{http_code}" -o "$response_file2" -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"$latest_block_number\", false],\"id\":1}" $ref) curl_code2=$? @@ -57,7 +57,7 @@ if [ $? -eq 0 ]; then response_file3=$(mktemp) status_file3=$(mktemp) { - $BASEPATH/multicurl.sh --ipv4 -m $timeout -s -X POST -w "%{http_code} %{time_total}" -o "$response_file3" -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"latest\", false],\"id\":1}" $ref > "$status_file3" + $BASEPATH/multicurl.sh -L --ipv4 -m $timeout -s -X POST -w "%{http_code} %{time_total}" -o "$response_file3" -H "Content-Type: application/json" --data "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"latest\", false],\"id\":1}" $ref > "$status_file3" } & pid3=$!