[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi Ramy, thanks for bumping the issue.

The solution suggested by Piotr Dobrogost is backward compatible and I think 
it's the right thing to do.

I opened a new PR thanks to the patch of Jérémie Detrey.

--
versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
pull_requests: +11797, 11798
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
pull_requests: +11797, 11798, 11799
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
pull_requests: +11797
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
nosy: +remi.lapeyre

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Ramy Abdel-Azim


Ramy Abdel-Azim  added the comment:

Hi,

Is there any update on this ticket? I would love to use Requests instead of 
writing a curl command and running it from the command line out of my script 
but I need this functionality to pull the cookies.txt file in.

Thanks!
_Ramy

--
nosy: +Ramy Abdel-Azim

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2015-01-07 Thread Jérémie Detrey

Jérémie Detrey added the comment:

Dear all,

Here is a small tentative patch for fixing this issue.

Expiry times for session cookies are now written as 0, and both 0 and  
are parsed as valid expiry times for session cookies.

Cheers,
Jérémie.

--
keywords: +patch
nosy: +jdetrey
versions: +Python 3.6
Added file: http://bugs.python.org/file37627/session-cookies.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17164
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2015-01-07 Thread Jérémie Detrey

Jérémie Detrey added the comment:

Hi again,

Attached is a patch for adding test cases to test_cookiejar.

Cheers,
Jérémie.

--
Added file: http://bugs.python.org/file37629/session-cookies-test.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17164
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2013-02-20 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

I could try to write a patch with some help if there was any chance it might be 
accepted. Where do I start?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2013-02-10 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


--
nosy: +orsenthil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2013-02-08 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

It seems there's no information on how should session cookies be stored in the 
Netscape/Mozilla's cookies.txt file with regard to expiry time - see 
http://www.cookiecentral.com/faq/#3.5 Maybe Netscape has not been saving such 
cookies at all thus this lack of specification? Nevertheless, both wget and 
curl use 0 as expiry time to denote session cookies; it works both when reading 
cookies from file and writing to file. However Python's MozillaCookieJar's 
class uses empty string for the same purpose which makes it incompatible both 
with wget and curl - see 
http://hg.python.org/cpython/file/bd8afb90ebf2/Lib/http/cookiejar.py#l2027

I propose to make a change in implementation of MozillaCookieJar class and 
treat cookies with 0 set as expiry time as session cookies both when reading 
from a file and writing to a file.

Motivation for this bug report comes from the following question on Stack 
Overflow - http://stackoverflow.com/q/14742899/95735

--
components: Library (Lib)
messages: 181703
nosy: piotr.dobrogost
priority: normal
severity: normal
status: open
title: MozillaCookieJar does not handle session cookies
type: behavior
versions: Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com