Message286338
| Author |
martin.panter |
| Recipients |
caligatio, christian.heimes, martin.panter, orsenthil, pitrou, r.david.murray |
| Date |
2017年01月27日.00:14:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1485476071.33.0.275105718222.issue15769@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Nothing has been fixed; I don’t see any evidence that this is "out of date". Here is a more complete test:
import urllib.request
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor())
urllib.request.install_opener(opener)
request = 'https://httpbin.org/cookies/set?name=value'
# Download certifiate chain for https://httpbin.org/ into cacert.pem (I used Firefox)
sock = urllib.request.urlopen(request, cafile = 'cacert.pem')
sock.read() # b'{\n "cookies": {}\n}\n' (No cookies!)
sock.close()
sock = urllib.request.urlopen(request) # Default SSL settings
sock.read() # b'{\n "cookies": {\n "name": "value"\n }\n}\n'
I’m not comfortable with applying a patch that "doesn’t mangle [the global state] too much". Anyway, this is the same as Issue 18543, which has slightly more recent discussion. |
|