dbFront 1.3.2.2081 extends the WebRequest action so that it allows you to send Get, Post, Head, Put and Delete requests.
In addition you can now include:
- Request Headers including fields and expressions.
- Request Body which can also resolve fields and expressions.
WebRequest has also been updated to allow receiving a Binary object which it can pass to a stored procedure, save in a Blob field, or display on screen. This has been tested with the API provided by CraftMyPDF and it works extremely well.
dbFront provides 4 optional fields to save or for the Stored Procedure call.
- {%webrequest_status%} - Returns the Status Code as integer or text depending on the field type.
- {%webrequest_contenttype%} - Returns the result mime type, e.g. "application/pdf"
- {%webrequest_data%} - Returns the Text, Json, or XML data
- {%webrequest_attachment%} - Returns the Binary/Blob data
dbFront can also optionally indent any received JSON.