alex_zueiv

FMP16 cURL --head option bug

Discussion created by alex_zueiv on Jan 11, 2018
Latest reply on Feb 2, 2018 by TSGal

Product and version

FMPA 16.0.3.302

 

OS and version

macOS 10.13.2

 

Description

I use cURL --head (-I) option to check that the file exists and to get it's size. For binary files it returns error 507 (Value in field failed calculation test of validation entry option). If I change the target to a container field, it writes there the binary file with the only requested header in it.

 

How to replicate

Perform the following script step:

 

Insert from URL [ $$HEAD; "https://www.w3schools.com/html/pulpitrock.jpg"; cURL options: "-I" ]

 

Workaround

Use the option --dump-header (-D) along with --head (-I):

 

Insert from URL [ $$HEAD; "https://www.w3schools.com/html/pulpitrock.jpg"; cURL options: "-I -D $$HEAD" ]

Outcomes