Brian Dunning's FileMaker Custom Functions

GetHttpHeader ( headers ; searchHdr )

Get the value of a single http header from the list of headers returned by cURL options --D

  Average rating: 3.7 (3 votes) Log in to vote

Colin Fallon   Colin Fallon
Colin Fallon
http://none.com

Share on Facebook Share on Twitter

  Sample input:
GetHttpHeader ( $headers ; "Last-Modified" )
  Sample output:
Thu, 25 May 2017 14:52:05 GMT

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

// Example to get the Last-Modified header

Insert From URL [ Select ; With dialog: Off ; $json ; "http://www.mysite.com/resource.json" ; cURL options: "--D $headers"
Set Field [ Table::Last_Mod_Date ; GetHttpHeader ( $headers ; "Last-Modified" )

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.