title: Why am i getting 403 error when i submit a processing request?
body: <p>I start python local server on ubuntu, server.py:</p>
  <pre><code>from http.server import HTTPServer, CGIHTTPRequestHandler
  
  server_address = (&quot;&quot;, 8000)
  httpd = HTTPServer(server_address, CGIHTTPRequestHandler)
  httpd.serve_forever()
  </code></pre>
  <p>it's start and open index.html:</p>
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset=&quot;utf-8&quot;&gt;
  &lt;title&gt;Обработка данных форм&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form action=&quot;/cgi-bin/form.py&quot;&gt;
          &lt;input type=&quot;text&quot; name=&quot;TEXT_1&quot;&gt;
          &lt;input type=&quot;text&quot; name=&quot;TEXT_2&quot;&gt;
          &lt;input type=&quot;submit&quot;&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Then i send GET request i have 403 Code Error:</p>
  <pre><code>Error response
  Error code: 403
  Message: CGI script is not executable ('/cgi-bin/form.py').
  Error code explanation: HTTPStatus.FORBIDDEN - Request forbidden -- authorization will not help.
  </code></pre>
  <p>form.py:</p>
  <pre><code>#!/usr/bin/env python3
  import cgi
  
  form = cgi.FieldStorage()
  text1 = form.getfirst(&quot;TEXT_1&quot;, &quot;не задано&quot;)
  text2 = form.getfirst(&quot;TEXT_2&quot;, &quot;не задано&quot;)
  
  print(&quot;Content-type: text/html\n&quot;)
  print(&quot;&quot;&quot;&lt;!DOCTYPE HTML&gt;
          &lt;html&gt;
          &lt;head&gt;
              &lt;meta charset=&quot;utf-8&quot;&gt;
              &lt;title&gt;Обработка данных форм&lt;/title&gt;
          &lt;/head&gt;
          &lt;body&gt;&quot;&quot;&quot;)
  
  print(&quot;&lt;h1&gt;Обработка данных форм!&lt;/h1&gt;&quot;)
  print(&quot;&lt;p&gt;TEXT_1: {}&lt;/p&gt;&quot;.format(text1))
  print(&quot;&lt;p&gt;TEXT_2: {}&lt;/p&gt;&quot;.format(text2))
  
  print(&quot;&quot;&quot;&lt;/body&gt;
          &lt;/html&gt;&quot;&quot;&quot;)
  </code></pre>
  <p>I try on Win 10 and it works well.</p>
  <p>I know about start server on Linyx like this:</p>
  <pre><code>python3 -m http.server --cgi
  </code></pre>
  <p>but i need start from file.</p>