<?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 use proxy server in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-proxy-server/m-p/1058695#M6070</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;We have a python script that is connecting to our ArcIGS online to update some content.&lt;/P&gt;&lt;P&gt;We need to run this script from one of our Dev servers which doesn't have internet access.&lt;/P&gt;&lt;P&gt;Instead we have a layer 7 (a forward proxy) in place which works as the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the python script is sending request like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/sharing/rest/generateToken" target="_blank" rel="noopener"&gt;https://www.arcgis.com/sharing/rest/generateToken&lt;/A&gt;&lt;BR /&gt;We will have a crosseponding layer7 URL to this domain&lt;/P&gt;&lt;P data-unlink="true"&gt;layer7.com/arcgisonline/* =&amp;gt; www.arcgis.com/*&lt;BR /&gt;layer7.com/organizationName/* =&amp;gt; www.organizationName.arcgis.com/*&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem, as you know we don't manage the requests ArcGIS python api is making.&lt;/P&gt;&lt;P&gt;So, I tried to create a proxy server using python. which intercept the requests sent by the arcgis python script, in a try to modify the sent requests But no luck till now.&lt;/P&gt;&lt;P&gt;As When I debug the proxy server, I find the request is empty and the arcgis python script returns with error while I'm still debuging the proxy server script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts about this, or is there is a way I can tell pthon script api to use a layer7 URL whenever it sends requests to a specific domain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 20:10:08 GMT</pubDate>
    <dc:creator>AbdelrahmanAbdelrazek</dc:creator>
    <dc:date>2021-05-17T20:10:08Z</dc:date>
    <item>
      <title>use proxy server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/use-proxy-server/m-p/1058695#M6070</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;We have a python script that is connecting to our ArcIGS online to update some content.&lt;/P&gt;&lt;P&gt;We need to run this script from one of our Dev servers which doesn't have internet access.&lt;/P&gt;&lt;P&gt;Instead we have a layer 7 (a forward proxy) in place which works as the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the python script is sending request like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/sharing/rest/generateToken" target="_blank" rel="noopener"&gt;https://www.arcgis.com/sharing/rest/generateToken&lt;/A&gt;&lt;BR /&gt;We will have a crosseponding layer7 URL to this domain&lt;/P&gt;&lt;P data-unlink="true"&gt;layer7.com/arcgisonline/* =&amp;gt; www.arcgis.com/*&lt;BR /&gt;layer7.com/organizationName/* =&amp;gt; www.organizationName.arcgis.com/*&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem, as you know we don't manage the requests ArcGIS python api is making.&lt;/P&gt;&lt;P&gt;So, I tried to create a proxy server using python. which intercept the requests sent by the arcgis python script, in a try to modify the sent requests But no luck till now.&lt;/P&gt;&lt;P&gt;As When I debug the proxy server, I find the request is empty and the arcgis python script returns with error while I'm still debuging the proxy server script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts about this, or is there is a way I can tell pthon script api to use a layer7 URL whenever it sends requests to a specific domain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 20:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/use-proxy-server/m-p/1058695#M6070</guid>
      <dc:creator>AbdelrahmanAbdelrazek</dc:creator>
      <dc:date>2021-05-17T20:10:08Z</dc:date>
    </item>
  </channel>
</rss>

