├── .gitignore ├── README.md ├── mfm-HTTP.fmp12 └── mfm-HTTP.xml /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | *.log 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mfm-http 2 | 3 | A single script that can handle all HTTP requests with Filemaker 4 | 5 | ## Breaking Change in 2.0.0 - sort of 6 | 7 | 2.0.0 technically has a breaking change but it is highly unlikly to cause problems. 8 | In 1.9.1 we added `response.Ok` property to the response as fast way to check if a response was in the 200 range. Version 2.0.0 changes that to `response.ok`, SO if you never used that feature that is only a couple of months old, you will not be impacted by this change. 9 | 10 | # Version History 11 | 12 | ## v2.0.1 13 | - **Date:** 3/18/2025 14 | - **Author:** Todd Geist (todd.geist@proofgeist.com) 15 | 16 | ## v2.0.0 17 | - **Change:** Changed `response.Ok` to `response.ok` to better match standards from other fetch libraries. This is technically a breaking change, which is why the version is updated to 2.0.0. However, it would likely only affect users who started using the `.ok` feature, which probably no one besides the author has. 18 | - **Author:** Todd Geist (todd.geist@proofgeist.com) 19 | 20 | ## v1.10.1 21 | - **Change:** On FileMaker version 19.5.1 and greater, `content-type=application/json` will be added to the headers if passing JSON data and the header doesn’t already include "application/json". 22 | 23 | ## v1.9.1 24 | - **Fix:** Resolved an issue with `$error` not being set correctly after the "Insert from URL" step. 25 | 26 | ## v1.9.0 27 | - **Fix:** Resolved a bug with `application/x-www-form-urlencoded`. 28 | - **Addition:** Added a Boolean "Ok" to the response if the request returns a 200-level response. 29 | 30 | ## v1.8.0 31 | - **Addition:** Added options for trace and duration. 32 | 33 | ## v1.7.0 34 | - **Addition:** Added support for nested form fields using `application/x-www-form-urlencoded`. 35 | 36 | ## v1.6.4 37 | - **Fix:** Resolved an issue with spaces in the username for basic authentication. 38 | 39 | ## v1.6.2 40 | - **Fix:** Corrected the fix for the empty headers bug. 41 | 42 | ## v1.6.1 43 | - **Fix:** Fixed an empty headers bug. 44 | 45 | ## v1.6 46 | - **Enhancement:** Added support for binary and form data. 47 | - **Enhancement:** Added handling for 100 status codes. 48 | 49 | ## v1.5 50 | - **Date:** 11/12/2018 51 | - **Author:** Todd Geist (todd@geistinteractive.com) 52 | - **Change:** Major refactor based on Generator 1 version. -------------------------------------------------------------------------------- /mfm-HTTP.fmp12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/proofgeist/mfm-http/89fbd6cc00804eb2aa101636e0595c1563040bb9/mfm-HTTP.fmp12 -------------------------------------------------------------------------------- /mfm-HTTP.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/proofgeist/mfm-http/89fbd6cc00804eb2aa101636e0595c1563040bb9/mfm-HTTP.xml --------------------------------------------------------------------------------