<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automagically Detect and Use Windows Proxy settings in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48008#M223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using 127.0.0.1, it will only work when you have a local proxy running like fiddler. Otherwise, it is telling the API to run things through the proxy, but that proxy isn't actually running, and the network requests will never make it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2015 21:20:43 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2015-10-06T21:20:43Z</dc:date>
    <item>
      <title>Automagically Detect and Use Windows Proxy settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48002#M217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm doing my the first Qt tutorial (Add a map to your app) but sit behind a firewall that is configured in in the standard Windows Internet options. When I build the solution, If I'm using an ArcGISTiledMapServiceLayer for the basemap, it doesn't show. I assume this is because the request needs to be sent through our proxy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I tell the Qt app to detect and use the default proxy settings configured for the user in windows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main.qml&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// Copyright 2015 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
//
// See the Sample code usage restrictions document for further information.
//


import QtQuick 2.3
import QtQuick.Controls 1.2
import ArcGIS.Runtime 10.26

ApplicationWindow {
&amp;nbsp;&amp;nbsp;&amp;nbsp; id: appWindow
&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 800
&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 600
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Add a map to your app"


&amp;nbsp;&amp;nbsp;&amp;nbsp; Map {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anchors.fill: parent


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; focus: true


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGISTiledMapServiceLayer {
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FWorld_Street_Map%2FMapServer" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine when using the ArcGISLocalTiledLayer though and I was able to get through the tutorial with that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48002#M217</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2021-12-10T21:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Automagically Detect and Use Windows Proxy settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48003#M218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to setup the proxy with ArcGISRuntime::setUpProxy - &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/class_arc_g_i_s_runtime.html#a788925a9eafc2c25b49ba232ae0ac962" title="https://developers.arcgis.com/qt/qml/api-reference/class_arc_g_i_s_runtime.html#a788925a9eafc2c25b49ba232ae0ac962" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Runtime SDK for Qt QML API: ArcGISRuntime Class Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, something like the following should do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import QtQuick 2.3
import QtQuick.Controls 1.2
import ArcGIS.Runtime 10.26


ApplicationWindow {
&amp;nbsp;&amp;nbsp;&amp;nbsp; id: appWindow
&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 800
&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 600


&amp;nbsp;&amp;nbsp;&amp;nbsp; Component.onCompleted: {
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGISRuntime.setupProxy("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F127.0.0.1%3A8888" target="_blank"&gt;http://127.0.0.1:8888&lt;/A&gt;&lt;SPAN&gt;"); // add your own URL and port&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }


&amp;nbsp;&amp;nbsp;&amp;nbsp; Map {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; anchors.fill: parent


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; focus: true


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGISTiledMapServiceLayer {
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserver.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FWorld_Street_Map%2FMapServer" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}










&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48003#M218</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-12-10T21:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automagically Detect and Use Windows Proxy settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48004#M219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;automagically&lt;/STRONG&gt; ... kudos, I love to see a neologism enter the wider idiolect &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 20:20:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48004#M219</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-06T20:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Automagically Detect and Use Windows Proxy settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48005#M220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lucas!,&lt;/P&gt;&lt;P&gt;I actually did find that in the Runtime docs but wasn't aware of the Component.onCompleted piece. While this makes sense and for most it is probably the right answer, it didn't work for me after I inserted our proxy url and port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I then updated the proxy to localhost and fired up fiddler to see if I could get any insight from the network requests. Tunneling through Fiddler it worked fine, but once I closed Fiddler I lost the WebMap again if I rebuilt the solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 20:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48005#M220</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2015-10-06T20:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Automagically Detect and Use Windows Proxy settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48006#M221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if helpful, but try the following - it worked for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #808000; background-color: #f0fade;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #800080; background-color: #f0fade;"&gt;AppFramework&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;.network.proxy.type&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #c0c0c0; background-color: #f0fade;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;!==&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #c0c0c0; background-color: #f0fade;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;2)&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #c0c0c0; background-color: #f0fade;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #800080; background-color: #f0fade;"&gt;ArcGISRuntime&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;.setupProxy(&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #800080; background-color: #f0fade;"&gt;AppFramework&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;.network.proxy.url)&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #c0c0c0; background-color: #f0fade;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/162910"&gt;How to detect if a network proxy is being used?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 20:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48006#M221</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-10-06T20:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automagically Detect and Use Windows Proxy settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48007#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, where are you referencing AppFramework from? I tried to import it but that didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;Looked up AppFramework, seems to be something specific to AppStudio which I'm not using.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 21:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48007#M222</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2015-10-06T21:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automagically Detect and Use Windows Proxy settings</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48008#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using 127.0.0.1, it will only work when you have a local proxy running like fiddler. Otherwise, it is telling the API to run things through the proxy, but that proxy isn't actually running, and the network requests will never make it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 21:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/automagically-detect-and-use-windows-proxy/m-p/48008#M223</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2015-10-06T21:20:43Z</dc:date>
    </item>
  </channel>
</rss>

