Project

Profile

Help

Feature #6243

open

Extend HTTP client to allow request body objects of other kinds (e.g. File) as accepted by the underlying API

Added by Martynas Jusevicius about 1 year ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Category:
IXSL extensions
Sprint/Milestone:
Start date:
2023-11-07
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Is there a reason why ixsl:schedule-action/@http-request requires a document node? IIRC it is a wrapper for XMLHttpRequest and it should be possible to send non-XML data.

I'm trying to submit a File but I get this error:

XError:HTTP request body must be a document node, supplied item is: (object) [object File] in HTTP request to: ...

This relates somewhat to media-type and https://saxonica.plan.io/issues/4735#note-1

Please register to edit this issue

Also available in: Atom PDF Tracking page