<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 9: HTTP Post and Auth broken</title><link>https://sourceforge.net/p/webinject/bug-reports/9/</link><description>Recent changes to 9: HTTP Post and Auth broken</description><atom:link href="https://sourceforge.net/p/webinject/bug-reports/9/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 15 Aug 2011 14:06:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/webinject/bug-reports/9/feed.rss" rel="self" type="application/rss+xml"/><item><title>HTTP Post and Auth broken</title><link>https://sourceforge.net/p/webinject/bug-reports/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;After reviewing and Debugging the source of webinspect.pl,&lt;br /&gt;
i found that the httppost_xml function is completely useless. &lt;br /&gt;
The Line:&lt;br /&gt;
$request = new HTTP::Request('POST' =&amp;gt; "$case{url}" );&lt;br /&gt;
creates a broken http request without "HTTP/1.1".&lt;br /&gt;
Furthermore, the httpauth parameter from the config are completely ignored. I do not know why, since they are parsed correctly and&lt;br /&gt;
stored in useragent-&amp;gt;credentials. But in the httppost_xml function, the "if ($case{addheader})" skips all authentication information.&lt;br /&gt;
It seems the content of $case{addheader} is not filled or messed up.&lt;br /&gt;
As a result, one gets a http request like:&lt;br /&gt;
POST &lt;a href="https://www.my.url.org" rel="nofollow"&gt;https://www.my.url.org&lt;/a&gt;&lt;br /&gt;
Content-Type: text/xml&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&amp;lt;request&amp;gt;&lt;br /&gt;
&amp;lt;requests/&amp;gt;&lt;br /&gt;
&amp;lt;/request&amp;gt;&lt;/p&gt;
&lt;p&gt;As you can see, HTTP/1.1 is missing and authentication credentials are completely ignored.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">new-gen23</dc:creator><pubDate>Mon, 15 Aug 2011 14:06:38 -0000</pubDate><guid>https://sourceforge.netf7a58f521b0ad203c0e414e4702b00a46c1b68aa</guid></item></channel></rss>