title: `CAPTCHA_CHALLENGE` on login with Python JIRA
body: <p><strong>Test script:</strong></p>
  <pre class="lang-py prettyprint-override"><code>from jira import JIRA
  
  user_name = &quot;my username&quot;
  password = &quot;my password&quot;
  jira_conn = JIRA(server='http://my.server.com',
                  basic_auth=(user_name, password))
  
  </code></pre>
  <hr />
  <p><strong>Error:</strong></p>
  <pre><code>jira.exceptions.JIRAError: JiraError HTTP 403 url: http://my.server.com/rest/api/2/serverInfo
      text: CAPTCHA_CHALLENGE; login-url=http://my.server.com/login.jsp
      
      response headers = {'X-AREQUESTID': '1036x605910x1', 'X-XSS-Protection': '1;mode=block',
                          'X-Content-Type-Options': 'nosniff',
                          'X-Frame-Options': 'SAMEORIGIN',
                          'Content-Security-Policy': &quot;frame-ancestors 'self'&quot;,
                          'X-ASEN': 'SEN-2105411', 'Set-Cookie': 'JSESSIONID=3D489D7D7A533761610029A9FEBEDE83; Path=/; HttpOnly',
                          'X-Seraph-LoginReason': 'AUTHENTICATION_DENIED',
                          'WWW-Authenticate': 'OAuth realm=&quot;http%3A%2F2Fmy.server.com&quot;',
                          'X-ASESSIONID': '161938n',
                          'X-Authentication-Denied-Reason': 'CAPTCHA_CHALLENGE; login-url=http://my.server.com/login.jsp',
                          'Content-Type': 'text/html;charset=UTF-8',
                          'Transfer-Encoding': 'chunked', 'Date': 'Mon, 29 Jun 2020 15:16:49 GMT'}
      response text = 
  </code></pre>
  <ol>
  <li><p>The first time I got this error I went to a browser, logged off then in again and in addition to <code>user</code>+<code>password</code>, a <em>captcha</em> was asked.</p>
  <p>1.1. Login page asked for this <em>captcha</em> a few times (this is not necessarily surprising) and finally succeeded.</p>
  </li>
  <li><p>Now I can log in and out from my JIRA server as many times as I want and it works at first <em>in browser</em>.</p>
  </li>
  <li><p>No matter the conditions I try, this simple code is no longer able to log in (and it was working perfectly until a day before).</p>
  <p>1.1. I tried changing <code>basic_auth</code> to <code>auth</code>. No luck.</p>
  </li>
  </ol>
  <hr />
  <p><strong>Questions:</strong></p>
  <ul>
  <li>Shouldn't a browser succesful log in clear the <em>captcha</em> state?</li>
  <li>I tried to follow Atlassian <a href="https://developer.atlassian.com/server/jira/platform/cookie-based-authentication/" rel="nofollow noreferrer">Cookie-based authentication</a>:</li>
  </ul>
  <pre class="lang-sh prettyprint-override"><code>curl -X POST http://my.server.com/jira/rest/auth/1/session -H jira/rest/auth/1/session -d '{ &quot;username&quot;: &quot;my username&quot;, &quot;password&quot;: &quot;my password&quot; }'
  </code></pre>
  <p>but response is:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;h1&gt;Oops, you&amp;#39;ve found a dead link.&lt;/h1&gt;
  </code></pre>
  <p>How can I find the correct URL for <code>my.server.com</code>?</p>
  <ul>
  <li>Which additional info is relevant here.</li>
  <li>What else can I test?</li>
  </ul>
  <hr />
  <p><strong>Environment</strong></p>
  <ul>
  <li>Python 3.8 and Python 2.7.</li>
  <li>Py-jira: jira&gt;=2.0.0</li>
  <li>Client is Rwindows-10.</li>
  <li>JIRA server version:
  <code>Atlassian Jira Project Management Software (v8.3.1#803002-sha1:00bd3db)</code></li>
  </ul>
  <hr />
  <p>Thanks!</p>
  <hr />
  <p><strong>EDIT</strong>*</p>
  <p>I managed to make <code>curl</code> work simply like this:</p>
  <pre class="lang-sh prettyprint-override"><code>curl -X POST 'http://my.server.com' --data '{ &quot;username&quot;: &quot;my user&quot;, &quot;password&quot;: &quot;my password&quot; }'
  </code></pre>