AnsweredAssumed Answered

How to format cURL Options

Question asked by jfencil on Dec 27, 2018
Latest reply on Dec 28, 2018 by jrenfrew

Hello Everyone!

 

I was working on integrating FileMaker with Dropbox and was wondering how to format cURL option headers correctly. I am just looking for suggestions on how to format the text below for use with a variable.

 

The following works perfectly when placed as is in a field:

 

--header "Authorization: Bearer <<dropbox_token>>"

--header "Dropbox-API-Arg: {\"autorename\":true,\"mode\":\"add\",\"mute\":false,\"path\":\"<<file_path>>\"}"

--header "Content-Type: application/octet-stream"

--data-binary @$file

 

What is the best way to go about formatting the above cURL options?

Outcomes