content
FaceRect
  Last updated: 30/07/2018
  • Installs:
  • Today: 4
  • All Time: 76500
Developer:userapicloud
Discussions
1 Answer
Follow conversation
User
2014-07-03
Any curl example for POSTing with image upload?
Hello,

I'm new to Curl. How do I upload an image and call https://apicloud-facerect.p.mashape.com/process-file.json 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!
user
2014-07-03
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
x
circle
FaceRect
$ / 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.

x

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
__SING_UP_WITH_GITHUB__
__SING_UP_WITH_FACEBOOK__
__SING_UP_WITH_GOOGLE__
  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view
    x

    Authentication

    Authenticate
    esccloses this view