This file is indexed.

/usr/share/doc/tsung/html/proxy.html is in tsung 1.7.0-3.

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
<!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>5. Using the proxy recorder &#8212; Tsung 1.7.0 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:     '1.7.0',
        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="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="6. Understanding tsung.xml configuration file" href="configuration.html" />
    <link rel="prev" title="4. Benchmark Approach" href="benchmark.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="configuration.html" title="6. Understanding tsung.xml configuration file"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="benchmark.html" title="4. Benchmark Approach"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">Tsung 1.7.0 documentation</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <span class="target" id="index-0"></span><div class="section" id="using-the-proxy-recorder">
<span id="tsung-recorder"></span><span id="index-1"></span><h1>5. Using the proxy recorder<a class="headerlink" href="#using-the-proxy-recorder" title="Permalink to this headline"></a></h1>
<p>The recorder has three plugins: for HTTP, WebDAV and for PostgreSQL.</p>
<p>To start it, run <strong class="command">tsung-recorder -p &lt;PLUGIN&gt; start</strong>, where <strong>PLUGIN</strong> can be
<em>http</em>, <em>webdav</em> or <em>pgsql</em> for PostgreSQL. The default plugin is <strong>http</strong>.</p>
<p>The proxy is listening to port <strong>8090</strong>. You can change the port with
<code class="xref std std-option docutils literal"><span class="pre">-L</span> <span class="pre">portnumber</span></code>.</p>
<p>To stop it, use <strong class="command">tsung-recorder stop</strong>.</p>
<p>The recorded session is created as
<code class="file docutils literal"><span class="pre">~/.tsung/tsung_recorderYYYMMDD-HH:MM.xml</span></code>; if it doesn’t work,
take a look at <code class="file docutils literal"><span class="pre">~/.tsung/log/tsung.log-tsung_recorder&#64;hostname</span></code></p>
<p id="index-2">During the recording, you can add custom tag in the XML file, this can
be useful to set transactions or comments:
<strong class="command">tsung-recorder record_tag &quot;&lt;transaction name='login'&gt;''</strong></p>
<p>Once a session has been created, you can insert it in your main configuration
file, either by editing by hand the file, or by using an ENTITY
declaration, like:</p>
<div class="highlight-xml"><div class="highlight"><pre><span></span><span class="cp">&lt;!DOCTYPE tsung SYSTEM &quot;/usr/share/tsung/tsung-1.0.dtd&quot; [</span>
<span class="cp">  &lt;!ENTITY mysession1 SYSTEM &quot;/home/nniclausse/.tsung/tsung_recorder20051217-13:11.xml&quot;&gt;</span>
]&gt;
...
<span class="nt">&lt;sessions&gt;</span>
  <span class="ni">&amp;mysession1;</span>
<span class="nt">&lt;/sessions&gt;</span>
</pre></div>
</div>
<div class="section" id="postgresql">
<h2>5.1. PostgreSQL<a class="headerlink" href="#postgresql" title="Permalink to this headline"></a></h2>
<p>For PostgreSQL, the proxy will connect to the server at IP 127.0.0.1
and port 5432. Use <strong>-I serverIP</strong> to change the IP and
<strong>-P portnumber</strong> to change the port.</p>
</div>
<div class="section" id="http-and-webdav">
<h2>5.2. HTTP and WEBDAV<a class="headerlink" href="#http-and-webdav" title="Permalink to this headline"></a></h2>
<p>For HTTPS recording, use <strong>http://-</strong> instead of
<strong>https://</strong> in your browser</p>
<p><strong>New in 1.2.2</strong>: For HTTP, you can configure the recorder to use a parent proxy (but this will not work for https). Add the <code class="xref std std-option docutils literal"><span class="pre">-u</span></code>
option to enable parent proxy, and use <strong>-I serverIP</strong> to set the IP and <strong>-P portnumber</strong> to set the port of the parent.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">5. Using the proxy recorder</a><ul>
<li><a class="reference internal" href="#postgresql">5.1. PostgreSQL</a></li>
<li><a class="reference internal" href="#http-and-webdav">5.2. HTTP and WEBDAV</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="benchmark.html"
                        title="previous chapter">4. Benchmark Approach</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="configuration.html"
                        title="next chapter">6. Understanding tsung.xml configuration file</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/proxy.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="configuration.html" title="6. Understanding tsung.xml configuration file"
             >next</a> |</li>
        <li class="right" >
          <a href="benchmark.html" title="4. Benchmark Approach"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">Tsung 1.7.0 documentation</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2004-2017, Nicolas Niclausse.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.5.
    </div>
  </body>
</html>