p:http-request 116 (AB)

Its a dynamic error, if @content-type is not valid..

Test ab-http-request-116.xml is expected to fail with error code err:XD0079 [XProc, Core steps].

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

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
   <p:option name="WHOST" select="'http://localhost:8246'" static="true"/>
   <p:output port="result"/>
   <p:http-request href="{$WHOST}/service/fixed-xml" parameters="map{'override-content-type' : 'surely-not-correct'}">
      <p:with-input>
         <p:empty/>
      </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

Changed the value of the href option to an HTTP URI. The value isn’t relevant to the test, but processors are allowed to reject schemes other than http(s):.

23 Jun 2020, Achim Berndzen

Additional tests for p:http-request.