xargs curl url

C++
Just use xargs to use pipe output as follows:
echo "site_path" | xargs -I % curl http://domain.com/path/%.tar
Source

Also in C++: