This file is indexed.

/usr/share/doc/python-pycurl-doc/html/troubleshooting.html is in python-pycurl-doc 7.43.0.1-0.2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Troubleshooting &#8212; PycURL 7.43.0.1 documentation</title>
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '7.43.0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true,
        SOURCELINK_SUFFIX: '.txt'
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="shortcut icon" href="_static/favicon.ico"/>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="pycurl Module Functionality" href="pycurl.html" />
    <link rel="prev" title="PycURL Quick Start" href="quickstart.html" /> 
  </head>
  <body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="pycurl.html" title="pycurl Module Functionality"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="quickstart.html" title="PycURL Quick Start"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">PycURL 7.43.0.1 documentation</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="troubleshooting">
<h1>Troubleshooting<a class="headerlink" href="#troubleshooting" title="Permalink to this headline">ΒΆ</a></h1>
<p>The first step of troubleshooting issues in programs using PycURL is
identifying which piece of software is responsible for the misbehavior.
PycURL is a thin wrapper around libcurl; libcurl performs most of the
network operations and transfer-related issues are generally the domain
of libcurl.</p>
<p>If your issue is transfer-related (timeout, connection failure, transfer
failure, <code class="docutils literal"><span class="pre">perform</span></code> hangs, etc.) the first step in troubleshooting is
setting the <code class="docutils literal"><span class="pre">VERBOSE</span></code> flag for the operation. libcurl will then output
debugging information as the transfer executes:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">pycurl</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">curl</span> <span class="o">=</span> <span class="n">pycurl</span><span class="o">.</span><span class="n">Curl</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">curl</span><span class="o">.</span><span class="n">setopt</span><span class="p">(</span><span class="n">curl</span><span class="o">.</span><span class="n">VERBOSE</span><span class="p">,</span> <span class="kc">True</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">curl</span><span class="o">.</span><span class="n">setopt</span><span class="p">(</span><span class="n">curl</span><span class="o">.</span><span class="n">URL</span><span class="p">,</span> <span class="s1">&#39;https://www.python.org&#39;</span><span class="p">)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">curl</span><span class="o">.</span><span class="n">setopt</span><span class="p">(</span><span class="n">curl</span><span class="o">.</span><span class="n">WRITEDATA</span><span class="p">,</span> <span class="nb">open</span><span class="p">(</span><span class="s1">&#39;/dev/null&#39;</span><span class="p">,</span> <span class="s1">&#39;w&#39;</span><span class="p">))</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">curl</span><span class="o">.</span><span class="n">perform</span><span class="p">()</span>
<span class="go">* Hostname www.python.org was found in DNS cache</span>
<span class="go">*   Trying 151.101.208.223...</span>
<span class="go">* TCP_NODELAY set</span>
<span class="go">* Connected to www.python.org (151.101.208.223) port 443 (#1)</span>
<span class="go">* found 173 certificates in /etc/ssl/certs/ca-certificates.crt</span>
<span class="go">* found 696 certificates in /etc/ssl/certs</span>
<span class="go">* ALPN, offering http/1.1</span>
<span class="go">* SSL re-using session ID</span>
<span class="go">* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256</span>
<span class="go">*      server certificate verification OK</span>
<span class="go">*      server certificate status verification SKIPPED</span>
<span class="go">*      common name: www.python.org (matched)</span>
<span class="go">*      server certificate expiration date OK</span>
<span class="go">*      server certificate activation date OK</span>
<span class="go">*      certificate public key: RSA</span>
<span class="go">*      certificate version: #3</span>
<span class="go">*      subject:</span>
<span class="go">*      start date: Sat, 17 Jun 2017 00:00:00 GMT</span>
<span class="go">*      expire date: Thu, 27 Sep 2018 12:00:00 GMT</span>
<span class="go">*      issuer: C=US,O=DigiCert Inc,OU=www.digicert.com,CN=DigiCert SHA2 Extended Validation Server CA</span>
<span class="go">*      compression: NULL</span>
<span class="go">* ALPN, server accepted to use http/1.1</span>
<span class="go">&gt; GET / HTTP/1.1</span>
<span class="go">Host: www.python.org</span>
<span class="go">User-Agent: PycURL/7.43.0.1 libcurl/7.52.1 GnuTLS/3.5.8 zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3</span>
<span class="go">Accept: */*</span>

<span class="go">&lt; HTTP/1.1 200 OK</span>
<span class="go">&lt; Server: nginx</span>
<span class="go">&lt; Content-Type: text/html; charset=utf-8</span>
<span class="go">&lt; X-Frame-Options: SAMEORIGIN</span>
<span class="go">&lt; x-xss-protection: 1; mode=block</span>
<span class="go">&lt; X-Clacks-Overhead: GNU Terry Pratchett</span>
<span class="go">&lt; Via: 1.1 varnish</span>
<span class="go">&lt; Fastly-Debug-Digest: a63ab819df3b185a89db37a59e39f0dd85cf8ee71f54bbb42fae41670ae56fd2</span>
<span class="go">&lt; Content-Length: 48893</span>
<span class="go">&lt; Accept-Ranges: bytes</span>
<span class="go">&lt; Date: Thu, 07 Dec 2017 07:28:32 GMT</span>
<span class="go">&lt; Via: 1.1 varnish</span>
<span class="go">&lt; Age: 2497</span>
<span class="go">&lt; Connection: keep-alive</span>
<span class="go">&lt; X-Served-By: cache-iad2146-IAD, cache-ewr18146-EWR</span>
<span class="go">&lt; X-Cache: HIT, HIT</span>
<span class="go">&lt; X-Cache-Hits: 2, 2</span>
<span class="go">&lt; X-Timer: S1512631712.274059,VS0,VE0</span>
<span class="go">&lt; Vary: Cookie</span>
<span class="go">&lt; Strict-Transport-Security: max-age=63072000; includeSubDomains</span>
<span class="go">&lt;</span>
<span class="go">* Curl_http_done: called premature == 0</span>
<span class="go">* Connection #1 to host www.python.org left intact</span>
<span class="go">&gt;&gt;&gt;</span>
</pre></div>
</div>
<p>The verbose output in the above example includes:</p>
<ul class="simple">
<li>DNS resolution</li>
<li>SSL connection</li>
<li>SSL certificate verification</li>
<li>Headers sent to the server</li>
<li>Headers received from the server</li>
</ul>
<p>If the verbose output indicates something you believe is incorrect,
the next step is to perform an identical transfer using <code class="docutils literal"><span class="pre">curl</span></code> command-line
utility and verify that the behavior is PycURL-specific, as in most cases
it is not. This is also a good time to check the behavior of the latest
version of libcurl.</p>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
  <p class="topless"><a href="quickstart.html"
                        title="previous chapter">PycURL Quick Start</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="pycurl.html"
                        title="next chapter">pycurl Module Functionality</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/troubleshooting.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="pycurl.html" title="pycurl Module Functionality"
             >next</a> |</li>
        <li class="right" >
          <a href="quickstart.html" title="PycURL Quick Start"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">PycURL 7.43.0.1 documentation</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2001-2018 Kjetil Jacobsen, Markus F.X.J. Oberhumer, Oleg Pudeyev.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.6.
    </div>
  </body>
</html>