<?xml version="1.0" encoding="UTF-8"?>
<t:test features="p:http-request"
        expected="fail"
        code="err:XC0124"
        xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xmlns:err="http://www.w3.org/ns/xproc-error">
   <t:info>
      <t:title>http-request-037 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2025-05-23</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Added static options for web server host and port.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2020-01-29</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed name of key.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2020-01-13</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Added new tests for p:http-request.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests p:http-request: Error needs to be raised if parameter has the wrong type.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step version="3.0"
                      xmlns:p="http://www.w3.org/ns/xproc">
         <p:option name="WHOST" select="'http://localhost:8246'" static="true"/>

         <p:output port="result"/>
         <p:http-request href="{$WHOST}/service/fixed-xml"
                         parameters="map{'accept-multipart' : 12}">
            <p:with-input>
               <p:empty/>
            </p:with-input>
         </p:http-request>
      </p:declare-step>
   </t:pipeline>
</t:test>
