Hi Russ,
On Sat, Aug 25, 2012 at 9:14 PM, Russ Weeks <
rwe...@newbrightidea.com> wrote:
>> How can I check the tornado header info to see if the cookie is being
>> sent along?
>
> In the Chrome developer tools, you can see the HTTP requests in the
> "Network" tab. For each request, you can see the headers in the "Request
> Headers" section of the headers tab. You should see an entry called
> "Cookie" showing the myapp_session cookie.
Yes, I've already verified this - my question was regarding the
server-end of things. How can I get a dump of the HTTP headers that
Tornado receives so I can see if the cookie data is even being sent or
not. Because I know it's in the browser, and I know that when I test
on the same domain, with a python cgi script (apache), the cookie data
is all there as expected. So, it's just Tornado that can't find it.
> If you want to see the lower-level details of how Tornado is parsing the
> HTTP request, I think you should look at either request.headers or maybe
> request.connection.stream.read_buffer? But this code is pretty robust; I
> would make doubly-sure that the cookies are getting sent across the wire
> first.
Well, request.headers.get_cookie('cookiename') returns None. Which
library/method do the HTTP headers come in on?
Thanks,
Nick