p:http-request 118 (NW)

Its a dynamic error, if the boundary is invalid.

Test nw-http-request-118.xml is expected to fail with error code err:XC0203.

It requires the following features: p:http-request.

The pipeline


<p:declare-step xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-inline-prefixes="c xs" version="3.0">
   <p:output port="result"/>
   <p:option name="WHOST" select="'http://localhost:8246'" static="true"/>
   <p:http-request href="{$WHOST}/service/check-multipart" method="post" headers="map { 'content-type': 'multipart/alternative; boundary=--not-an-acceptable-boundary' }">
      <p:with-input>
         <p:inline>
            <doc1/>
         </p:inline>
         <p:inline>
            <doc2/>
         </p:inline>
      </p:with-input>
   </p:http-request>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

23 May 2025, Norm Tovey-Walsh

Added static options for web server host and port.

09 Sep 2021, Norman Walsh

Multipart boundary test for p:http-request.