POST binary file using curl
I have a basic upload form which I would like to emulate using cURL. <?php $params = array( 'api_key' => $api_key, 'api_secret' => $api_secret, 'urls' => null, 'uids' => 'all', 'detector' => 'Aggressive', 'namespace' => 'face.auth'); $action = $url . '?' . http_build_query($params); ?> <form enctype="multipart/form-data" method="post" action="<?php echo $action; ?>"> <input type="file" name="upload" id="upload"> <input type="submit" /> </form> I know how to post using cURL, but I'm not sure how to post the image data (this data is stored as binary data in a database, lets call it $binary). Pas
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.