title: Jenkins: HTTP error 403 when getting config
body: <p>I try to update Jenkins jobs' config programmatically, and the <a href="http://packages.python.org/jenkinsapi/index.html" rel="nofollow noreferrer">python Jenkins api</a> looked ok, but I can't retrieve a config because of HTTP error 403 (forbidden):</p>
  
  <pre><code>from jenkinsapi import api
  j = api.Jenkins('https://server.test.com/hudson', 'fp12210', 'xxxxxxxx')
  job = j.get_job('BBB-100-CheckStatusAll')
  conf = job.get_config()
  
  Traceback (most recent call last):
    ...
    File "C:\Python27\lib\urllib2.py", line 521, in http_error_default
      raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  HTTPError: HTTP Error 403: Forbidden
  </code></pre>
  
  <p>Adding user and password in URL, <a href="https://stackoverflow.com/questions/7427557/jenkins-and-github-webhook-http-403">as mentionned in another SO post</a>, fails too:</p>
  
  <pre><code> j = api.Jenkins('https://fp12210:xxxxxxxx@server.test.com/hudson')
  
  Traceback (most recent call last):
    ...
    File "build\bdist.win32\egg\jenkinsapi\utils\retry.py", line 39, in retry_function
      raise e
  InvalidURL: nonnumeric port: 'xxxxxxxx@server.test.com/hudson'
  </code></pre>
  
  <p>Do you have any idea ?</p>