Use `call-process' instead of `shell-command-to-string' to execute "curl" program.
Remove require.