Last updated: 20/6/2018
  • Installs:
  • Today: 4
  • All Time: 75924
1 Answer
Follow conversation
Any curl example for POSTing with image upload?

I'm new to Curl. How do I upload an image and call at the same time in Curl?

The following didin't work but it illustrates what I want to do:

curl -i -F name=test -F [email protected] --request POST --header "X-Mashape-Authorization: <my code>" --insecure

Also, I used the insecure option because otherwise curl keeps complaining with the certificate issue.

Thanks for your help!
apicloudresponded with an answer
Hi there!

Thanks for interest in our API!

Here is a working cURL sample for you:

curl --request POST --header "X-Mashape-Authorization: <your code>" -F "[email protected]"

You may also add "-i" or "--include" if you need response headers.

"--insecure" shouldn't really be necessary, we didn't experience any problems with the certificate while testing.

Hope that helps!
userHello developer, Please Sign in to post an answer
$ / m
We will charge your card every month for the plan amount, as well as any overages incurred in the previous month.

Oops, we are missing some details

Looks like there are a few missing details that you haven't filled in yet.
These details are important and will help us protect you and let you know about anything new.


Why sign up to RapidAPI?

  • integrate
    Integrate APIs into your app
    Ruby, Java, Elixir, Node.js, Phyton, Objective C, Swift, PHP and MORE
  • keys
    Save all API keys in one place
  • notifications
    Get notifications about API changes
  • stats
    Get stats and monitor API connections
  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view


    esccloses this view