<div dir="ltr">Hi Mark,<div><br></div><div>I try to use asynchronous SOAPHTTP transport for XML::Compile::SOAP. I would like to preset some HTTP headers (basic auth, ...), but I found it hardly possible.<br></div><div><br></div><div><div>$guard = http_request $request-&gt;method =&gt; $request-&gt;uri</div><div>         , body    =&gt; $request-&gt;content</div><div>         , headers =&gt; $request-&gt;headers</div><div>         , $self-&gt;anyEventParams</div><div>         , $handler;</div></div><div><br></div><div>As you can see in code XML::Compile::Transport::SOAPHTTP_AnyEvent via anyEventParams attribute you can only add more arguments to http_request call you cannot change the headers.</div><div><br></div><div><div>Could it be possible to add an optional user_agent (ua?) parameter for XML::Compile::Transport::SOAPHTTP_AnyEvent constructor. This parameter if supplied would be an anonymous subroutine to be used to send the request instead of AnyEvent::HTTP::http_request</div></div><div><br></div><div>my $ua = $self-&gt;{ua} || \&amp;AnyEnvent::HTTP::http_request;</div><div><div>$guard = $ua-&gt;($request-&gt;method =&gt; $request-&gt;uri</div><div>         , body    =&gt; $request-&gt;content</div><div>         , headers =&gt; $request-&gt;headers</div><div>         , $self-&gt;anyEventParams</div><div>         , $handler);</div></div><div><br></div><div>Thanks for any reply,<br></div><div><br></div><div>Roman Daniel</div></div>