currently the line is:
curl -s -o /dev/null -iL -w "%{http_code}","%{size_download}" " $1/$2;/"
the space between the quote and $ causes the curl to fail " $1/$2;/"
the following line should do:
curl -s -o /dev/null -iL -w "%{http_code}","%{size_download}" "$1/$2;/"
currently the line is: curl -s -o /dev/null -iL -w "%{http_code}","%{size_download}" " $1/$2;/" the space between the quote and $ causes the curl to fail " $1/$2;/" the following line should do: curl -s -o /dev/null -iL -w "%{http_code}","%{size_download}" "$1/$2;/"