curl: add a test (fetches its own tarball)

Closes #28053.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>