Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #57531

Re: Cookie aint retrieving when visiting happens from a backlink.

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.python
Subject Re: Cookie aint retrieving when visiting happens from a backlink.
Date 2013-10-25 15:17 +0000
Organization A noiseless patient Spider
Message-ID <l4e21o$99a$3@dont-email.me> (permalink)
References (7 earlier) <l4dlmm$fc9$1@dont-email.me> <mailman.1513.1382703109.18130.python-list@python.org> <l4dnnc$qmk$1@dont-email.me> <mailman.1514.1382704567.18130.python-list@python.org> <l4dple$6mf$1@dont-email.me>

Show all headers | View raw


On Fri, 25 Oct 2013 15:54:05 +0300, Nick the Gr33k wrote:

>>>>> Can you reproduce this simple problem on your side to see if it
>>>>> behaves the same way as in me?

>>>> Like I said at the beginning, no it doesn't. Go forth and wield the
>>>> Google.

>>> Answer me in detail an stop pointing me at vague google searchs.

>> No.

> Yes, don't be lazy.

You're the one who is too lazy to learn enough about tcp / ip and http to 
understand what is happening with your cookie problem, and you are 
calling other people lazy for not solving it.

I confirmed in an earlier thread that the problem you describe does not 
happen on my system with my python cookie handling. Chris has confirmed 
that it does not happen on his system, so it must be something specific 
to what you are doing.

The obvious step is to use a tool like wireshark to capture the tcp/ip 
exchanges between the server and the client, to analyse those exchanges, 
and to see exactly what is being sent in each direction.

This is how you debug such problems. When you know what data is actually 
being transferred, then you can go back to software and work out why the 
data that you expect to be transferred isn't being transferred.

Using wireshark is beyond the scope of this newsgroup, as is analysing 
the contents of tcp/ip packets and http requests and responses.

If the client is not sending the expected cookie to the server, then the 
most likely problem is that the client does not associate that particular 
cookie with the server url. If this is the case, then the problem is that 
when you initially sent the cookie to the client, you did not define the 
server url in the cookie in a manner that would cause the client to 
associate the cookie with the url in the subsequent request. This is not 
a python problem, it's an http cookies problem, and the answer lies in 
the cookie you are creating.

Or you can extract the cookie from the cookie jar in the client (again 
not a python issue, so don't ask how to do it here) and look for an http 
forum where you can ask why cookie x isn't applied to server y. This is 
not that forum.

Oh look, that's almost the same advice I gave you about 10 days ago!

So you've spent 10 days ignoring my advice, and then you call Chris lazy.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Cookie aint retrieving when visiting happens from a backlink. Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-25 10:22 +0300
  Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 18:32 +1100
    Re: Cookie aint retrieving when visiting happens from a backlink. Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-25 11:25 +0300
      Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 19:33 +1100
        Re: Cookie aint retrieving when visiting happens from a backlink. Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-25 11:46 +0300
          Re: Cookie aint retrieving when visiting happens from a backlink. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-25 10:03 +0100
          Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 13:30 +0300
            Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 21:51 +1100
              Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 14:46 +0300
                Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 23:11 +1100
                Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 15:20 +0300
                Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-25 23:35 +1100
                Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 15:54 +0300
                Re: Cookie aint retrieving when visiting happens from a backlink. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-25 15:21 +0100
                Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 18:04 +0300
                Re: Cookie aint retrieving when visiting happens from a backlink. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-25 16:12 +0100
                Re: Cookie aint retrieving when visiting happens from a backlink. Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-10-26 16:05 +0200
                Re: Cookie aint retrieving when visiting happens from a backlink. Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-25 15:17 +0000
                Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 18:29 +0300
                Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-26 02:34 +1100
                Re: Cookie aint retrieving when visiting happens from a backlink. Joel Goldstick <joel.goldstick@gmail.com> - 2013-10-25 11:36 -0400
                Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-25 18:49 +0300
                Re: Cookie aint retrieving when visiting happens from a backlink. Steve Simmons <square.steve@gmail.com> - 2013-10-25 17:28 +0100
                Re: Cookie aint retrieving when visiting happens from a backlink. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-25 19:17 +0100
                Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-26 11:19 +1100
      Re: Cookie aint retrieving when visiting happens from a backlink. Piet van Oostrum <piet@vanoostrum.org> - 2013-10-26 21:17 -0400
        Re: Cookie aint retrieving when visiting happens from a backlink. Roy Smith <roy@panix.com> - 2013-10-26 21:34 -0400
        Re: Cookie aint retrieving when visiting happens from a backlink. Piet van Oostrum <piet@vanoostrum.org> - 2013-10-26 22:24 -0400
          Re: Cookie aint retrieving when visiting happens from a backlink. Nick the Gr33k <nikos.gr33k@gmail.com> - 2013-10-27 08:45 +0200
    Re: Cookie aint retrieving when visiting happens from a backlink. Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-10-25 11:26 +0300
  Re: Cookie aint retrieving when visiting happens from a backlink. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-10-25 15:13 +0000
    Re: Cookie aint retrieving when visiting happens from a backlink. Chris Angelico <rosuav@gmail.com> - 2013-10-26 02:28 +1100

csiph-web