Insert from URL with cURL options
ExpertMake authenticated HTTP requests, send POST bodies, and set custom headers using Insert from URL with cURL options.
What you'll learn
- How to send a POST request with a JSON body
- How to set Authorization and Content-Type headers
- How to capture HTTP status codes alongside the response body
Insert from URL supports a cURL options string that unlocks full HTTP control: custom methods (POST, PUT, DELETE), request headers, basic authentication, multipart forms, and response header inspection. This makes FileMaker a capable HTTP client without any plugins.
1/3
1
Send a POST request with a JSON body
Set the cURL options field to specify the method, headers, and body.
FileMaker Script
Set Variable [ $body ; Value:
JSONSetElement ( "{}" ;
[ "name" ; Contacts::FullName ; JSONString ] ;
[ "email" ; Contacts::Email ; JSONString ]
)
]
Insert from URL [
Select ; No dialog ;
Target: $response ;
URL: "https://api.example.com/contacts" ;
cURL options: "--request POST
--header "Content-Type: application/json"
--header "Authorization: Bearer " & $$apiToken
--data @$body"
]Sign in to track your progress and pick up where you left off.
Sign in to FM Dojo