"${stuff[@]}" would be turning it back into "foo bar baz" though, right? I think if you were using arrays for this, it'd be something like:
stuff=("foo" "bar" "baz");
array_length=${#stuff[@]};
for i in $(seq 0 $array_length); do
curl localhost:8080/${stuff[i]}
done
I'm betting even that isn't right: as soon as bash arrays are a thing, I reach for a different language.[edit]: trying to get formatting correct