Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Curl error: option-less arguments found

I'm trying to import this example into postman

curl -s --user 'api:YOUR_API_KEY' \
    https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages \
    -F from='Excited User <mailgun@YOUR_DOMAIN_NAME>' \
    -F to=YOU@YOUR_DOMAIN_NAME \
    -F [email protected] \
    -F subject='Hello' \
    -F text='Testing some Mailgun awesomness!'

Please help me understand the -s, --user, -F, what is that? And then when I try to import, I get this error: option-less arguments found. How can I fix this?

like image 291
Noman Avatar asked Jan 16 '17 18:01

Noman


1 Answers

If you're trying to execute curl commands in Postman, select Import, then Paste Raw Text and then copy the command, but first remove all backslashes.

like image 67
gdrt Avatar answered Sep 22 '22 23:09

gdrt