mozilla

Compare Revisions

HTTP logging

Change Revisions

Revision 13748:

Revision 13748 by Agradman on

Revision 13749:

Revision 13749 by Agradman on

Title:
HTTP Logging
HTTP Logging
Slug:
HTTP_Logging
HTTP_Logging
Tags:
Necko
Necko
Content:

Revision 13748
Revision 13749
n8      This page contains instructions&nbsp;for how to use Mozillan8      <a href="/en/HTTP_Logging#Logging_HTTP_Activity" title="htt
>'s built-in logging facility to capture HTTP activity in Firefox.>ps://developer.mozilla.org/en/HTTP_Logging#Logging_HTTP_Activity"
> &nbsp;The presentation is designed for&nbsp;people who are unfam>>Jump down to the&nbsp;"Logging HTTP Activity" section</a><strong
>iliar with Mozilla (or computers in general). &nbsp;If you are su>><span><a href="/en/HTTP_Logging#Logging_HTTP_Activity" title="ht
>ch a person, simply look at the&nbsp;"Logging HTTP activity" sect>tps://developer.mozilla.org/en/HTTP_Logging#Logging_HTTP_Activity
>ion below.>">↓</a></span></strong> for instructions on using Mozilla's built
 >-in logging facility to capture HTTP activity in Firefox, written
 > for&nbsp;people who are unfamiliar with Mozilla (or computers in
 > general).
n11      If you are referring such a person to this page, please makn11      For more experienced users, <a href="/en/HTTP_Logging#Exclu
>e clear to them where you want them to perform variations on thes>ding_specific_portions_of_HTTP_activity" title="https://developer
>e generic instructions. &nbsp;The "Excluding specific portions of>.mozilla.org/en/HTTP_Logging#Excluding_specific_portions_of_HTTP_
> HTTP activity" section below provides some&nbsp;common variation>activity">see the "Excluding specific portions of HTTP activity" 
>s for focusing the log on specific portions of HTTP activity (e.g>section ↓</a> for instructions on focusing the log on specific po
>. HTTP request/response headers,&nbsp;socket level log output, or>rtions of HTTP activity (e.g. HTTP request/response headers,&nbsp
> host resolver log output).>;socket level log output, or host resolver log output).&nbsp; If 
 >you are referring a novice to this page, please make clear to the
 >m where you want them to perform these variations on the generic 
 >instructions.&nbsp;
n14      Non-novices can find more information on HTTP debugging in n14      The <a href="/en/HTTP_Logging#See_also" title="https://deve
>the "See also" section.&nbsp;>loper.mozilla.org/en/HTTP_Logging#See_also">"See also" section ↓<
 >/a> contains non-novice information on HTTP debugging.&nbsp;
n17      Logging HTTP activityn17      <a name="Logging_HTTP_Activity" id="Logging_HTTP_Activity">
 >Logging HTTP Activity</a>
n20      Windowsn20      <a name="Logging_HTTP_Activity" id="Logging_HTTP_Activity">
 >Windows</a>
n23      1. Make sure Firefox is not running.n23      <a name="Logging_HTTP_Activity" id="Logging_HTTP_Activity">
 >1. Make sure Firefox is not running.</a>
n26      2. Open a command prompt, i.e. the "run" program. (<a classn26      <a name="Logging_HTTP_Activity" id="Logging_HTTP_Activity">
>=" external" href="http://commandwindows.com/runline.htm" title=">2. Open a command prompt, i.e. the "run" program. (</a><a class="
>http://commandwindows.com/runline.htm">Instructions for XP</a>, <> external external" href="http://commandwindows.com/runline.htm" 
>a class=" external" href="http://www.xp-vista.com/other/where-is->title="http://commandwindows.com/runline.htm">Instructions for XP
>run-in-windows-vista" title="http://www.xp-vista.com/other/where-></a>, <a class=" external" href="http://www.xp-vista.com/other/wh
>is-run-in-windows-vista">Instructions for Vista</a>.)>ere-is-run-in-windows-vista" title="http://www.xp-vista.com/other
 >/where-is-run-in-windows-vista">Instructions for Vista</a>.)
n29      3. Copy-paste each of the following <strong><code><span styn29      3. Copy-paste each of the following <strong><code><span sty
>le="font-family: Verdana,Tahoma,sans-serif;">bold</span></code></>le="font-family: Verdana,Tahoma,sans-serif;">bold</span></code></
>strong><code>lines into the "run" prompt, hitting enter between t>strong>lines into the "run" prompt, hitting enter between them:
>hem:</code> 
n33        <code><strong>C<code>:\&gt; set NSPR_LOG_MODULES=nsHttp:5n33        <strong>C<code>:\&gt; set NSPR_LOG_MODULES=nsHttp:5,nsSoc
>,nsSocketTransport:5,nsHostResolver:5</code></strong></code>>ketTransport:5,nsHostResolver:5</code></strong>
nn129    <p>
130      &nbsp;
131    </p>
n130      Excluding specific portions of HTTP activityn133      <a name="Excluding_specific_portions_of_HTTP_activity" id="
 >Excluding_specific_portions_of_HTTP_activity">Excluding specific 
 >portions of HTTP activity</a>
131    </h2>134    </h2><a name="Excluding_specific_portions_of_HTTP_activity" i
 >d="Excluding_specific_portions_of_HTTP_activity"></a>
n133      <li>If you are only interested in logging HTTP request/respn136      <li style="list-style: none">
>onse headers: 
137        <a name="Excluding_specific_portions_of_HTTP_activity" id
 >="Excluding_specific_portions_of_HTTP_activity"></a>
138      </li>
139      <li>
140        <a name="Excluding_specific_portions_of_HTTP_activity" id
 >="Excluding_specific_portions_of_HTTP_activity">If you are only i
 >nterested in logging HTTP request/response headers:</a>
nn142          <li style="list-style: none">
143            <a name="Excluding_specific_portions_of_HTTP_activity
 >" id="Excluding_specific_portions_of_HTTP_activity"></a>
144          </li>
tt147          <li>
137          <li>Option two: There is also a handy extension for Fir148            <a name="Excluding_specific_portions_of_HTTP_activity
>efox called&nbsp;<a class="link-https" href="https://addons.mozil>" id="Excluding_specific_portions_of_HTTP_activity">Option two: T
>la.org/firefox/addon/3829">Live HTTP Headers</a>&nbsp;that can be>here is also a handy extension for Firefox called&nbsp;</a><a cla
> used to capture only the HTTP request/response headers. It is a >ss="link-https" href="https://addons.mozilla.org/firefox/addon/38
>very handy tool in cases where you want to just peek at HTTP traf>29">Live HTTP Headers</a>&nbsp;that can be used to capture only t
>fic.>he HTTP request/response headers. It is a very handy tool in case
 >s where you want to just peek at HTTP traffic.

Back to History