http-request-071 (AB)

Tests p:http-request: Testing parameter 'override-content-type'.

Test ab-http-request-071.xml is expected to fail with error code err:XC0030.

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/echo" method="post" parameters="map{'override-content-type' : 'application/xml'}">
            <p:with-input>
               <p:inline content-type="text/plain">{{"key" : "value"}}</p:inline>
            </p:with-input>
         </p:http-request>
         
      </p:declare-step>
   

Revision history

14 Jan 2020, Achim Berndzen

Added new tests for p:http-request.