How to send file from Local FS via HTTP Client

asked 2019-03-01 22:35:06 -0600

moston gravatar image


how to send whole image file from local FS via http Client to cloudinary as explained here? here is a Curl working example:

    curl -X POST \ \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F api_key=XXXXXXXXX \
  -F signature=13521c23f28ba8657ae2abf58325ffcb4101aaf6 \
  -F timestamp=1551477265 \
  -F folder=pictures \
  -F file=@/local-path-the-image-dir/image.jpg

Thanks for your help

edit retag flag offensive close merge delete