http-request-109 (AB)

Tests p:http-request: Error needs to be raised if value of header content-type is not correct.

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

The pipeline


      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         
         <p:http-request href="http://tests.xproc.org/service/fixed-xml" headers="map{'content-type' : 'surely-not-correct'}">
            <p:with-input>
               <p:empty/>
            </p:with-input>
         </p:http-request>
      </p:declare-step>
   
XML Calabash failing

Revision history

09 Apr 2020, Achim Berndzen

Changed error code.

02 Feb 2020, Achim Berndzen

Added new tests for p:http-request.