<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Installer Framework creates &#x27;blacklisted&#x27; QNetworkRequests]]></title><description><![CDATA[<p dir="auto">The Installer Framework creates QNetworkRequests with the default User-Agent of "Mozilla/5.0". <a href="https://github.com/qtproject/installer-framework/blob/cf8d5b9a650cc413dde79cf7d72da407c8993ddc/src/libs/installer/downloadfiletask.cpp#L374" target="_blank" rel="noopener noreferrer nofollow ugc">See example here.</a></p>
<p dir="auto">On many web hosts, this User-Agent value triggers Mod Security rule 900095: "Bad UA :: Fake Mozilla Agent", which causes the download to fail.</p>
<p dir="auto">The solution is to set the User-Agent header to any other value. Is this a known issue? Are there any workarounds?</p>
]]></description><link>https://forum.qt.io/topic/98797/installer-framework-creates-blacklisted-qnetworkrequests</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 07:57:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/98797.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Jan 2019 10:47:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Installer Framework creates &#x27;blacklisted&#x27; QNetworkRequests on Wed, 23 Jan 2019 12:38:48 GMT]]></title><description><![CDATA[<p dir="auto">See <a href="https://bugreports.qt.io/browse/QTIFW-671" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTIFW-671</a> and vote and comment there.</p>
]]></description><link>https://forum.qt.io/post/506643</link><guid isPermaLink="true">https://forum.qt.io/post/506643</guid><dc:creator><![CDATA[Tim.Jenssen]]></dc:creator><pubDate>Wed, 23 Jan 2019 12:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to Installer Framework creates &#x27;blacklisted&#x27; QNetworkRequests on Tue, 22 Jan 2019 12:27:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Did you already checked the <a href="https://bugreports.qt.io" target="_blank" rel="noopener noreferrer nofollow ugc">bug report system</a> for something similar ?</p>
<p dir="auto">One thing that could be done but requires modification of the installer framework would be to manually set the user agent like:</p>
<pre><code>QNetworkRequest request;
request.setUrl(url);
request.setRawHeader("User-Agent", "MyInstaller 1.0");
</code></pre>
]]></description><link>https://forum.qt.io/post/506410</link><guid isPermaLink="true">https://forum.qt.io/post/506410</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 22 Jan 2019 12:27:36 GMT</pubDate></item></channel></rss>