Skip to content

Instantly share code, notes, and snippets.

@Christophe31
Created August 30, 2011 20:58
Show Gist options
  • Save Christophe31/1182006 to your computer and use it in GitHub Desktop.
Save Christophe31/1182006 to your computer and use it in GitHub Desktop.
IE log on gunicorn bug
<?xml version="1.0" encoding="UTF-8"?>
<log>
<version>1.1</version>
<creator>
<name>Internet Explorer Network Inspector</name>
<version>9.0.8112.16421</version>
</creator>
<browser>
<name>Internet Explorer</name>
<version>9.0.8112.16421</version>
</browser>
<pages>
<page>
<startedDateTime>2011-08-30T20:37:00.914+01:00</startedDateTime>
<id>0</id>
<title/>
<pageTimings>
<onContentLoad>982</onContentLoad>
<onLoad>1053</onLoad>
</pageTimings>
</page>
</pages>
<entries>
<entry>
<pageref>0</pageref>
<startedDateTime>2011-08-30T20:37:00.914+01:00</startedDateTime>
<time>421</time>
<request>
<method>POST</method>
<url>http://192.168.0.16:8080/agents/login/</url>
<httpVersion>HTTP/1.1</httpVersion>
<cookies>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>d6a550d603950bdd31f1a072ddc4fee0</value>
</cookie>
</cookies>
<headers>
<header>
<name>Accept</name>
<value>text/html, application/xhtml+xml, */*</value>
</header>
<header>
<name>Referer</name>
<value>http://192.168.0.16:8080/agents/login/?next=/agents/my_events/</value>
</header>
<header>
<name>Accept-Language</name>
<value>fr-FR</value>
</header>
<header>
<name>User-Agent</name>
<value>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</value>
</header>
<header>
<name>Content-Type</name>
<value>application/x-www-form-urlencoded</value>
</header>
<header>
<name>Accept-Encoding</name>
<value>gzip, deflate</value>
</header>
<header>
<name>Host</name>
<value>192.168.0.16:8080</value>
</header>
<header>
<name>Content-Length</name>
<value>99</value>
</header>
<header>
<name>Connection</name>
<value>Keep-Alive</value>
</header>
<header>
<name>Cache-Control</name>
<value>no-cache</value>
</header>
<header>
<name>Cookie</name>
<value>csrftoken=afc35952b26e310488fc4048616518cc; sessionid=d6a550d603950bdd31f1a072ddc4fee0</value>
</header>
</headers>
<queryString/>
<postData>
<mimeType>application/x-www-form-urlencoded</mimeType>
<text>csrfmiddlewaretoken=afc35952b26e310488fc4048616518cc&amp;username=user&amp;password=password&amp;submit=Valider</text>
</postData>
<headersSize>531</headersSize>
<bodySize>99</bodySize>
</request>
<response>
<status>302</status>
<statusText>FOUND</statusText>
<httpVersion>HTTP/1.0</httpVersion>
<cookies>
<cookie>
<name>sessionid</name>
<value>56d9ae8dadb7cd783009b183117205f3</value>
<path>/</path>
<domain/>
<expires>2011-09-13T18:36:58.0+01:00</expires>
<httpOnly>false</httpOnly>
<_secure>false</_secure>
</cookie>
</cookies>
<headers>
<header>
<name>Server</name>
<value>WSGIServer/0.1 Python/2.7.1+</value>
</header>
<header>
<name>Date</name>
<value>Tue, 30 Aug 2011 20:36:58 GMT</value>
</header>
<header>
<name>Vary</name>
<value>Cookie</value>
</header>
<header>
<name>Content-Length</name>
<value>0</value>
</header>
<header>
<name>Content-Type</name>
<value>text/html; charset=utf-8</value>
</header>
<header>
<name>Location</name>
<value>http://192.168.0.16:8080/</value>
</header>
<header>
<name>Set-Cookie</name>
<value>sessionid=56d9ae8dadb7cd783009b183117205f3; expires=Tue, 13-Sep-2011 20:36:58 GMT; Max-Age=1209600; Path=/</value>
</header>
</headers>
<content>
<size>0</size>
<mimeType>text/html; charset=utf-8</mimeType>
<text/>
</content>
<redirectionURL/>
<headersSize>328</headersSize>
<bodySize>0</bodySize>
</response>
<cache/>
<timings>
<send>0</send>
<wait>421</wait>
<receive>0</receive>
</timings>
</entry>
<entry>
<pageref>0</pageref>
<startedDateTime>2011-08-30T20:37:01.335+01:00</startedDateTime>
<time>31</time>
<request>
<method>POST</method>
<url>http://192.168.0.16:8080/</url>
<httpVersion>HTTP/1.1</httpVersion>
<cookies>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>d6a550d603950bdd31f1a072ddc4fee0</value>
</cookie>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>d6a550d603950bdd31f1a072ddc4fee0</value>
</cookie>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>56d9ae8dadb7cd783009b183117205f3</value>
</cookie>
</cookies>
<headers>
<header>
<name>Accept</name>
<value>text/html, application/xhtml+xml, */*</value>
</header>
<header>
<name>Referer</name>
<value>http://192.168.0.16:8080/agents/login/?next=/agents/my_events/</value>
</header>
<header>
<name>Accept-Language</name>
<value>fr-FR</value>
</header>
<header>
<name>User-Agent</name>
<value>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</value>
</header>
<header>
<name>Accept-Encoding</name>
<value>gzip, deflate</value>
</header>
<header>
<name>Host</name>
<value>192.168.0.16:8080</value>
</header>
<header>
<name>Connection</name>
<value>Keep-Alive</value>
</header>
<header>
<name>Cache-Control</name>
<value>no-cache</value>
</header>
<header>
<name>Cookie</name>
<value>csrftoken=afc35952b26e310488fc4048616518cc; sessionid=d6a550d603950bdd31f1a072ddc4fee0</value>
</header>
<header>
<name>Accept</name>
<value>text/html, application/xhtml+xml, */*</value>
</header>
<header>
<name>Referer</name>
<value>http://192.168.0.16:8080/agents/login/?next=/agents/my_events/</value>
</header>
<header>
<name>Accept-Language</name>
<value>fr-FR</value>
</header>
<header>
<name>User-Agent</name>
<value>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</value>
</header>
<header>
<name>Accept-Encoding</name>
<value>gzip, deflate</value>
</header>
<header>
<name>Host</name>
<value>192.168.0.16:8080</value>
</header>
<header>
<name>Connection</name>
<value>Keep-Alive</value>
</header>
<header>
<name>Cache-Control</name>
<value>no-cache</value>
</header>
<header>
<name>Cookie</name>
<value>csrftoken=afc35952b26e310488fc4048616518cc; sessionid=56d9ae8dadb7cd783009b183117205f3</value>
</header>
</headers>
<queryString/>
<postData>
<mimeType/>
<text>csrfmiddlewaretoken=afc35952b26e310488fc4048616518cc&amp;username=user&amp;password=password&amp;submit=Valider</text>
</postData>
<headersSize>448</headersSize>
<bodySize>99</bodySize>
</request>
<response>
<status>301</status>
<statusText>MOVED PERMANENTLY</statusText>
<httpVersion>HTTP/1.0</httpVersion>
<cookies/>
<headers>
<header>
<name>Server</name>
<value>WSGIServer/0.1 Python/2.7.1+</value>
</header>
<header>
<name>Date</name>
<value>Tue, 30 Aug 2011 20:36:58 GMT</value>
</header>
<header>
<name>Content-Length</name>
<value>0</value>
</header>
<header>
<name>Content-Type</name>
<value>text/html; charset=utf-8</value>
</header>
<header>
<name>Location</name>
<value>http://192.168.0.16:8080/agents/</value>
</header>
</headers>
<content>
<size>0</size>
<mimeType>text/html; charset=utf-8</mimeType>
<text/>
</content>
<redirectionURL/>
<headersSize>212</headersSize>
<bodySize>0</bodySize>
</response>
<cache/>
<timings>
<send>31</send>
<wait>0</wait>
<receive>0</receive>
</timings>
</entry>
<entry>
<pageref>0</pageref>
<startedDateTime>2011-08-30T20:37:01.366+01:00</startedDateTime>
<time>31</time>
<request>
<method>POST</method>
<url>http://192.168.0.16:8080/agents/</url>
<httpVersion>HTTP/1.1</httpVersion>
<cookies>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>56d9ae8dadb7cd783009b183117205f3</value>
</cookie>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>56d9ae8dadb7cd783009b183117205f3</value>
</cookie>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>56d9ae8dadb7cd783009b183117205f3</value>
</cookie>
</cookies>
<headers>
<header>
<name>Accept</name>
<value>text/html, application/xhtml+xml, */*</value>
</header>
<header>
<name>Referer</name>
<value>http://192.168.0.16:8080/agents/login/?next=/agents/my_events/</value>
</header>
<header>
<name>Accept-Language</name>
<value>fr-FR</value>
</header>
<header>
<name>User-Agent</name>
<value>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</value>
</header>
<header>
<name>Accept-Encoding</name>
<value>gzip, deflate</value>
</header>
<header>
<name>Host</name>
<value>192.168.0.16:8080</value>
</header>
<header>
<name>Connection</name>
<value>Keep-Alive</value>
</header>
<header>
<name>Cache-Control</name>
<value>no-cache</value>
</header>
<header>
<name>Cookie</name>
<value>csrftoken=afc35952b26e310488fc4048616518cc; sessionid=56d9ae8dadb7cd783009b183117205f3</value>
</header>
<header>
<name>Accept</name>
<value>text/html, application/xhtml+xml, */*</value>
</header>
<header>
<name>Referer</name>
<value>http://192.168.0.16:8080/agents/login/?next=/agents/my_events/</value>
</header>
<header>
<name>Accept-Language</name>
<value>fr-FR</value>
</header>
<header>
<name>User-Agent</name>
<value>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</value>
</header>
<header>
<name>Accept-Encoding</name>
<value>gzip, deflate</value>
</header>
<header>
<name>Host</name>
<value>192.168.0.16:8080</value>
</header>
<header>
<name>Connection</name>
<value>Keep-Alive</value>
</header>
<header>
<name>Cache-Control</name>
<value>no-cache</value>
</header>
<header>
<name>Cookie</name>
<value>csrftoken=afc35952b26e310488fc4048616518cc; sessionid=56d9ae8dadb7cd783009b183117205f3</value>
</header>
</headers>
<queryString/>
<postData>
<mimeType/>
<text>csrfmiddlewaretoken=afc35952b26e310488fc4048616518cc&amp;username=user&amp;password=password&amp;submit=Valider</text>
</postData>
<headersSize>455</headersSize>
<bodySize>99</bodySize>
</request>
<response>
<status>302</status>
<statusText>FOUND</statusText>
<httpVersion>HTTP/1.0</httpVersion>
<cookies/>
<headers>
<header>
<name>Server</name>
<value>WSGIServer/0.1 Python/2.7.1+</value>
</header>
<header>
<name>Date</name>
<value>Tue, 30 Aug 2011 20:36:58 GMT</value>
</header>
<header>
<name>Vary</name>
<value>Cookie</value>
</header>
<header>
<name>Content-Length</name>
<value>0</value>
</header>
<header>
<name>Content-Type</name>
<value>text/html; charset=utf-8</value>
</header>
<header>
<name>Location</name>
<value>http://192.168.0.16:8080/agents/my_events/</value>
</header>
</headers>
<content>
<size>0</size>
<mimeType>text/html; charset=utf-8</mimeType>
<text/>
</content>
<redirectionURL/>
<headersSize>224</headersSize>
<bodySize>0</bodySize>
</response>
<cache/>
<timings>
<send>16</send>
<wait>15</wait>
<receive>0</receive>
</timings>
</entry>
<entry>
<pageref>0</pageref>
<startedDateTime>2011-08-30T20:37:01.397+01:00</startedDateTime>
<time>203</time>
<request>
<method>POST</method>
<url>http://192.168.0.16:8080/agents/my_events/</url>
<httpVersion>HTTP/1.1</httpVersion>
<cookies>
<cookie>
<name>SpryMedia_DataTables_main_table_</name>
<value>%7B%22iCreate%22%3A1314736609464%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A10%2C%22sFilter%22%3A%22%22%2C%22sFilterEsc%22%3Atrue%2C%22aaSorting%22%3A%5B%20%5B0%2C%22asc%22%5D%5D%2C%22aaSearchCols%22%3A%5B%20%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%5D%2C%22abVisCols%22%3A%5B%20true%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D</value>
</cookie>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>56d9ae8dadb7cd783009b183117205f3</value>
</cookie>
<cookie>
<name>SpryMedia_DataTables_main_table_</name>
<value>%7B%22iCreate%22%3A1314736609464%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A10%2C%22sFilter%22%3A%22%22%2C%22sFilterEsc%22%3Atrue%2C%22aaSorting%22%3A%5B%20%5B0%2C%22asc%22%5D%5D%2C%22aaSearchCols%22%3A%5B%20%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%5D%2C%22abVisCols%22%3A%5B%20true%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D</value>
</cookie>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>56d9ae8dadb7cd783009b183117205f3</value>
</cookie>
<cookie>
<name>SpryMedia_DataTables_main_table_</name>
<value>%7B%22iCreate%22%3A1314736609464%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A10%2C%22sFilter%22%3A%22%22%2C%22sFilterEsc%22%3Atrue%2C%22aaSorting%22%3A%5B%20%5B0%2C%22asc%22%5D%5D%2C%22aaSearchCols%22%3A%5B%20%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%5D%2C%22abVisCols%22%3A%5B%20true%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D</value>
</cookie>
<cookie>
<name>csrftoken</name>
<value>afc35952b26e310488fc4048616518cc</value>
</cookie>
<cookie>
<name>sessionid</name>
<value>56d9ae8dadb7cd783009b183117205f3</value>
</cookie>
</cookies>
<headers>
<header>
<name>Accept</name>
<value>text/html, application/xhtml+xml, */*</value>
</header>
<header>
<name>Referer</name>
<value>http://192.168.0.16:8080/agents/login/?next=/agents/my_events/</value>
</header>
<header>
<name>Accept-Language</name>
<value>fr-FR</value>
</header>
<header>
<name>User-Agent</name>
<value>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</value>
</header>
<header>
<name>Accept-Encoding</name>
<value>gzip, deflate</value>
</header>
<header>
<name>Host</name>
<value>192.168.0.16:8080</value>
</header>
<header>
<name>Connection</name>
<value>Keep-Alive</value>
</header>
<header>
<name>Cache-Control</name>
<value>no-cache</value>
</header>
<header>
<name>Cookie</name>
<value>SpryMedia_DataTables_main_table_=%7B%22iCreate%22%3A1314736609464%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A10%2C%22sFilter%22%3A%22%22%2C%22sFilterEsc%22%3Atrue%2C%22aaSorting%22%3A%5B%20%5B0%2C%22asc%22%5D%5D%2C%22aaSearchCols%22%3A%5B%20%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%5D%2C%22abVisCols%22%3A%5B%20true%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D; csrftoken=afc35952b26e310488fc4048616518cc; sessionid=56d9ae8dadb7cd783009b183117205f3</value>
</header>
<header>
<name>Accept</name>
<value>text/html, application/xhtml+xml, */*</value>
</header>
<header>
<name>Referer</name>
<value>http://192.168.0.16:8080/agents/login/?next=/agents/my_events/</value>
</header>
<header>
<name>Accept-Language</name>
<value>fr-FR</value>
</header>
<header>
<name>User-Agent</name>
<value>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</value>
</header>
<header>
<name>Accept-Encoding</name>
<value>gzip, deflate</value>
</header>
<header>
<name>Host</name>
<value>192.168.0.16:8080</value>
</header>
<header>
<name>Connection</name>
<value>Keep-Alive</value>
</header>
<header>
<name>Cache-Control</name>
<value>no-cache</value>
</header>
<header>
<name>Cookie</name>
<value>SpryMedia_DataTables_main_table_=%7B%22iCreate%22%3A1314736609464%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A10%2C%22sFilter%22%3A%22%22%2C%22sFilterEsc%22%3Atrue%2C%22aaSorting%22%3A%5B%20%5B0%2C%22asc%22%5D%5D%2C%22aaSearchCols%22%3A%5B%20%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%2C%5B%22%22%2Ctrue%5D%5D%2C%22abVisCols%22%3A%5B%20true%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D; csrftoken=afc35952b26e310488fc4048616518cc; sessionid=56d9ae8dadb7cd783009b183117205f3</value>
</header>
</headers>
<queryString/>
<postData>
<mimeType/>
<text>csrfmiddlewaretoken=afc35952b26e310488fc4048616518cc&amp;username=user&amp;password=password&amp;submit=Valider</text>
</postData>
<headersSize>894</headersSize>
<bodySize>99</bodySize>
</request>
<response>
<status>200</status>
<statusText>OK</statusText>
<httpVersion>HTTP/1.0</httpVersion>
<cookies/>
<headers>
<header>
<name>Server</name>
<value>WSGIServer/0.1 Python/2.7.1+</value>
</header>
<header>
<name>Date</name>
<value>Tue, 30 Aug 2011 20:36:58 GMT</value>
</header>
<header>
<name>Vary</name>
<value>Cookie</value>
</header>
<header>
<name>Content-Length</name>
<value>3054</value>
</header>
<header>
<name>Content-Type</name>
<value>text/html; charset=utf-8</value>
</header>
</headers>
<content>
<size>3054</size>
<mimeType>text/html; charset=utf-8</mimeType>
<text>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Mes évènements | Agent_Man_Agent&lt;/title&gt;
&lt;link rel="shortcut icon" href="/favicon.ico" /&gt;
&lt;link rel="stylesheet" href="/static/css/reset.css" type="text/css" media="all" /&gt;
&lt;link rel="stylesheet" href="/static/css/style.css" type="text/css" media="all" /&gt;
&lt;link rel="stylesheet" href="/static/css/print.css" type="text/css" media="print" /&gt;
&lt;link rel="stylesheet" href="/static/css/jquery-ui-1.8.14.custom.css" type="text/css" /&gt;
&lt;!--[if lt IE 7]&gt;
&lt;link rel="stylesheet" type="text/css" href="/static/css/style-ie.css" /&gt;
&lt;![endif]--&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
ama_notifications = [] ;
django_messages = [];
&lt;/script&gt;
&lt;script type="text/javascript" src="/static/notifyapi/jgrowl/jquery.jgrowl.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/static/notifyapi/js/jgrowl_init.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="/static/notifyapi/jgrowl/jquery.jgrowl.css" /&gt;
&lt;link rel="stylesheet" type="text/css" href="/static/notifyapi/css/jgrowl_skins.css" /&gt;
&lt;script type="text/javascript" language="javascript" src="/static/js/jquery.dataTables.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript"&gt;
action_list = &amp;gt;&amp;gt;\\ Tag d&amp;#39;insertion invalide //&amp;lt;&amp;lt;
&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="/static/agent_man_agent/js/action_list_generic.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="page-wrap"&gt;
&lt;div id="inside"&gt;
&lt;div id="header"&gt;
&lt;h1&gt;Agent Man Agent&lt;/h1&gt;

&lt;div id="top-menu"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="" href="/agents/my_agents/"&gt;Mes agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="active" href="/agents/my_events/"&gt;Mes évènements&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="/admin/"&gt;Admin&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="" href="/agents/logout/"&gt;Déconnexion (&lt;b&gt;user&lt;/b&gt;)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style="clear: both;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="main-content"&gt;
&lt;div&gt;
&lt;table id="main_table" width="100%"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;td&gt;durée&lt;/td&gt;
&lt;td&gt;début&lt;/td&gt;
&lt;td&gt;fin&lt;/td&gt;
&lt;td&gt;lieu&lt;/td&gt;
&lt;td&gt;commentaire&lt;/td&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="clear: both;"&gt;&lt;/div&gt;
&lt;div id="footer"&gt;
&lt;p&gt;&lt;a href="/static/agent_man_agent_doc/index.html"&gt;Documentation&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="clear: both;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</text>
</content>
<redirectionURL/>
<headersSize>170</headersSize>
<bodySize>3054</bodySize>
</response>
<cache/>
<timings>
<send>0</send>
<wait>63</wait>
<receive>140</receive>
</timings>
</entry>
</entries>
</log>
<?xml version="1.0" encoding="UTF-8"?>
<log>
<version>1.1</version>
<creator>
<name>Internet Explorer Network Inspector</name>
<version>9.0.8112.16421</version>
</creator>
<browser>
<name>Internet Explorer</name>
<version>9.0.8112.16421</version>
</browser>
<pages>
<page>
<startedDateTime>2011-08-30T20:36:02.301+01:00</startedDateTime>
<id>0</id>
<title/>
<pageTimings>
<onContentLoad>2307</onContentLoad>
<onLoad>2346</onLoad>
</pageTimings>
</page>
</pages>
<entries>
<entry>
<pageref>0</pageref>
<startedDateTime>2011-08-30T20:36:02.301+01:00</startedDateTime>
<time>62</time>
<request>
<method>POST</method>
<url>http://my_django_server.com/agents/login/</url>
<httpVersion>HTTP/1.1</httpVersion>
<cookies/>
<headers>
<header>
<name>Accept</name>
<value>text/html, application/xhtml+xml, */*</value>
</header>
<header>
<name>Referer</name>
<value>http://my_django_server.com/agents/login/?next=/agents/my_events/</value>
</header>
<header>
<name>Accept-Language</name>
<value>fr-FR</value>
</header>
<header>
<name>User-Agent</name>
<value>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)</value>
</header>
<header>
<name>Content-Type</name>
<value>application/x-www-form-urlencoded</value>
</header>
<header>
<name>Accept-Encoding</name>
<value>gzip, deflate</value>
</header>
<header>
<name>Host</name>
<value>my_django_server.com</value>
</header>
<header>
<name>Content-Length</name>
<value>99</value>
</header>
<header>
<name>Connection</name>
<value>Keep-Alive</value>
</header>
<header>
<name>Cache-Control</name>
<value>no-cache</value>
</header>
</headers>
<queryString/>
<postData>
<mimeType>application/x-www-form-urlencoded</mimeType>
<text>csrfmiddlewaretoken=f76f184a8719e74a30aefea6f41528fb&amp;username=user&amp;password=password&amp;submit=Valider</text>
</postData>
<headersSize>453</headersSize>
<bodySize>99</bodySize>
</request>
<response>
<status>403</status>
<statusText>FORBIDDEN</statusText>
<httpVersion>HTTP/1.1</httpVersion>
<cookies/>
<headers>
<header>
<name>Server</name>
<value>nginx/0.7.67</value>
</header>
<header>
<name>Date</name>
<value>Tue, 30 Aug 2011 20:35:59 GMT</value>
</header>
<header>
<name>Content-Type</name>
<value>text/html</value>
</header>
<header>
<name>Transfer-Encoding</name>
<value>chunked</value>
</header>
<header>
<name>Connection</name>
<value>keep-alive</value>
</header>
</headers>
<content>
<size>2326</size>
<mimeType>text/html</mimeType>
<text>
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&gt;
&lt;meta name="robots" content="NONE,NOARCHIVE"&gt;
&lt;title&gt;403 Forbidden&lt;/title&gt;
&lt;style type="text/css"&gt;
html * { padding:0; margin:0; }
body * { padding:10px 20px; }
body * * { padding:0; }
body { font:small sans-serif; background:#eee; }
body&gt;div { border-bottom:1px solid #ddd; }
h1 { font-weight:normal; margin-bottom:.4em; }
h1 span { font-size:60%; color:#666; font-weight:normal; }
#info { background:#f6f6f6; }
#info ul { margin: 0.5em 4em; }
#info p, #summary p { padding-top:10px; }
#summary { background: #ffc; }
#explanation { background:#eee; border-bottom: 0px none; }
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="summary"&gt;
&lt;h1&gt;Forbidden &lt;span&gt;(403)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;CSRF verification failed. Request aborted.&lt;/p&gt;
&lt;/div&gt;
&lt;div id="info"&gt;
&lt;h2&gt;Help&lt;/h2&gt;
&lt;p&gt;Reason given for failure:&lt;/p&gt;
&lt;pre&gt;
No CSRF or session cookie.
&lt;/pre&gt;
&lt;p&gt;In general, this can occur when there is a genuine Cross Site Request Forgery, or when
&lt;a
href='http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf'&gt;Django's
CSRF mechanism&lt;/a&gt; has not been used correctly. For POST forms, you need to
ensure:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The view function uses &lt;a
href='http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext'&gt;&lt;code&gt;RequestContext&lt;/code&gt;&lt;/a&gt;
for the template, instead of &lt;code&gt;Context&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;In the template, there is a &lt;code&gt;{% csrf_token
%}&lt;/code&gt; template tag inside each POST form that
targets an internal URL.&lt;/li&gt;
&lt;li&gt;If you are not using &lt;code&gt;CsrfViewMiddleware&lt;/code&gt;, then you must use
&lt;code&gt;csrf_protect&lt;/code&gt; on any views that use the &lt;code&gt;csrf_token&lt;/code&gt;
template tag, as well as those that accept the POST data.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You're seeing the help section of this page because you have &lt;code&gt;DEBUG =
True&lt;/code&gt; in your Django settings file. Change that to &lt;code&gt;False&lt;/code&gt;,
and only the initial error message will be displayed. &lt;/p&gt;
&lt;p&gt;You can customize this page using the CSRF_FAILURE_VIEW setting.&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</text>
</content>
<redirectionURL/>
<headersSize>162</headersSize>
<bodySize>2326</bodySize>
</response>
<cache/>
<timings>
<send>0</send>
<wait>62</wait>
<receive>0</receive>
</timings>
</entry>
</entries>
</log>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment