Features: p:http-request

http-request-038 (AB)

Tests p:http-request: Error needs to be raised if parameter has the wrong type.

Test is expected to fail with error code err:XC0124.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:option name="WHOST"
             select="'http://localhost:8246'" static="true"/>
   <p:http-request href="{$WHOST}/service/fixed-xml"
                   parameters="map{'override-content-encoding' : 12}">
      <p:with-input>
         <p:empty/>
      </p:with-input>
   </p:http-request>
</p:declare-step>

Revision history

23 May 2025, Norm Tovey-Walsh
Added static options for web server host and port.
29 Jan 2020, Achim Berndzen
Fixed test to recent changes.
13 Jan 2020, Achim Berndzen
Added new tests for p:http-request.