p:http-request 123 (NW)

If you don’t specify send-body-anyway=true, the body isn’t sent.

Test nw-http-request-123.xml is expected to pass.

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:http-request href="http://localhost:8246/service/check-singlepart" method="delete">
      <p:with-input>
         <doc1/>
      </p:with-input>
   </p:http-request>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:ns prefix="p" uri="http://www.w3.org/ns/xproc"/>
   <s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
   <s:pattern>
      <s:rule context="/*">
         <s:assert test="self::check-singlepart">The pipeline root is not check-singlepart.</s:assert>
         <s:assert test="empty(body)">Request included a body.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

23 Sep 2021, Achim Berndzen

Changed test so that returned headers don't make the test fail.

09 Sep 2021, Norman Walsh

Test send-body-anyway for p:http-request.