<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error">

<t:title>Test http-request #010</t:title>

<t:pipeline>
<p:declare-step version='1.0' name="main">
  <p:output port="result"/>
  <p:http-request>
    <p:input port="source">
      <p:inline>
	<c:request method="get" href="http://tests.xproc.org/docs/basic-auth/"
		   username="testuser" password="testpassword" auth-method="Basic"
		   send-authorization="true" detailed="true"/>
      </p:inline>
    </p:input>
  </p:http-request>

  <p:delete match="c:header"/>

</p:declare-step>
</t:pipeline>

<t:output port='result'>
<c:response status="200"><c:body content-type='text/html; charset="utf-8"'>&lt;html xmlns='http://www.w3.org/1999/xhtml'&gt;
&lt;head&gt;
&lt;title&gt;Basic authentication test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Basic authentication test&lt;/h1&gt;
&lt;p&gt;Success!&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</c:body></c:response>
</t:output>

</t:test>

