<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 10:25 PM, Marc Lehmann <span dir="ltr"><<a href="mailto:schmorp@schmorp.de" target="_blank">schmorp@schmorp.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Thu, Jul 18, 2013 at 10:03:04PM +0600, Andrey Khozov <<a href="mailto:avkhozov@googlemail.com">avkhozov@googlemail.com</a>> wrote:<br>


> I know that when HTTP server sends to client a following header:<br>
><br>
</div>> *<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">​​</div>Set-Cookie: name=data; Path=/; Domain=<a href="http://example.com" target="_blank">example.com</a>*<br>
><br>
> User agent for the next request to *<a href="http://example.com" target="_blank">http://example.com</a>* should send to the<br>
> server this header:<br>
><br>
> *Cookie: name=data*<br>
<div class="im">><br>
> AnyEvent::HTTP does not it.<br>
<br>
</div>I think it does - at least if I modify your example program to use<br>
"<a href="http://example.com" target="_blank">example.com</a>" in the jar and in the extract call, it does extract the<br>
cookie, and I have no reason to believe that it wouldn't do the same when<br>
used internally.<br>
<br>
It also seems to be a different issue than what you were talking about<br>
before. (.<a href="http://example.com" target="_blank">example.com</a> vs. <a href="http://example.com" target="_blank">example.com</a>).<br></blockquote><div><br></div><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">

​When AE::HTTP get header</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><b><span style="font-family:arial">Set-Cookie: name=data; Path=/; Domain=</span><a href="http://example.com/" target="_blank" style="font-family:arial">example.com</a></b></div>

<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">in jar appear a key '<b>.<a href="http://example.com">example.com</a></b>' (with leading point)</div><div class="gmail_default"><font face="arial, helvetica, sans-serif">And at the next http request cookies are not sent.</font><br>

</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><br>
> This is described in <a href="http://tools.ietf.org/html/rfc6265#section-4.1.2.3" target="_blank">http://tools.ietf.org/html/rfc6265#section-4.1.2.3</a>, for example.<br>
<br>
</div>And it is also what ae::http implements.<br>
<br>
Note also that you are quoting the wrong section, the relevant section is<br>
5.1.3 (Domain Matching), section 4 is completely irrelevant for this problem.<br>
<div class="im"><br>
> I realized that my previous patch is not correct, but the current behavior<br>
> of the AE::HTTP is also not correct.<br>
<br>
</div>You have given zero evidence for that so far though - in fact, your<br>
evidence shows that it works according to the RFC for at least for that<br>
domain (ae::http does not even attempt to implement rfc6265).<br>
<br>
Lastly, what counts is not that rfc or any other, as real world servers<br>
expect slightly different rules. AnyEvent::HTTP tries to follow whats<br>
practical, not any of the many rfcs that were never implemented by<br>
anybody.<br>
<br>
Again, whats corretc or not is a difficult question, and cannot be<br>
answered by quoting the (mostly irrelevant) RFCs on this topic.<br>
<div class=""><div class="h5"><br>
--<br>
                The choice of a       Deliantra, the free code+content MORPG<br>
      -----==-     _GNU_              <a href="http://www.deliantra.net" target="_blank">http://www.deliantra.net</a><br>
      ----==-- _       generation<br>
      ---==---(_)__  __ ____  __      Marc Lehmann<br>
      --==---/ / _ \/ // /\ \/ /      <a href="mailto:schmorp@schmorp.de">schmorp@schmorp.de</a><br>
      -=====/_/_//_/\_,_/ /_/\_\<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Andrey Khozov
</div></div>