<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>I have been playing around with the
Asterisk Manager over HTTP stuff in the Asterisk trunk.&nbsp; It is really cool;
however, I discovered a problem using it with Internet Explorer.&nbsp; The
cookie parsing code in http.c does not work with the cookie strings that
Internet Explorer sends.&nbsp; Because of this, you can&#8217;t log in using
IE.</span></font><font face=Arial><span style='font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>I&#8217;ve put together some revised
parsing code (below) that appears to work for both IE 6 and FireFox 1.5.&nbsp;
The code would drop in to http.c around line 398.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:navy'>&nbsp;</span></font><font
face="Courier New"><span style='font-family:"Courier New"'>/* TODO - The cookie
parsing code below seems to work in IE6 and&nbsp; */<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/* FireFox
1.5.&nbsp; However, it is not entirely correct,
and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/* therefore may
not work in all circumstances.&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<font color=navy><span
style='color:navy'>&nbsp;&nbsp;&nbsp;&nbsp; </span></font>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; */<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/*&nbsp;&nbsp;&nbsp;
For more details see RFC 2109 and RFC
2965&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/* FireFox cookie
strings look
like:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/*&nbsp;&nbsp;
Cookie:
mansession_id=&quot;********&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/*
InternetExplorer's look
like:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/*&nbsp;&nbsp;
Cookie: $Version=&quot;1&quot;;
mansession_id=&quot;********&quot;&nbsp;&nbsp;&nbsp;&nbsp; */<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/* If we got a
FireFox cookie string, the name's right after &quot;Cookie: &quot; */<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>vname = cookie +
8;<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>/* If we got an
IE cookie string, we need to skip to the name */<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>if( *vname == '$'
)<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>{<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>&nbsp;&nbsp;
&nbsp;vname = strchr( vname, ';' ) + 1;<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>&nbsp;&nbsp;
&nbsp;if( *vname == ' ' )<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;vname++;<br>
<font color=navy><span style='color:navy'>&nbsp;</span></font>} <font
color=navy><span style='color:navy'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>Of course the ideal solution would be to
have parsing code compliant to RFC 2109 and 2965, but that seems like a fairly
substantial undertaking.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>I haven&#8217;t had much exposure to
Asterisk development or the open source community in general, so I apologize if
there is a better way for me to be submitting this feedback.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>Jeffrey<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>