summaryrefslogtreecommitdiffstats
path: root/Doc/library/urllib.request.rst
Commit message (Collapse)AuthorAgeFilesLines
* Issues #29189: Merge indentation fixes from 3.5Martin Panter2017-01-241-39/+39
|\
| * Issue #29189: Fix indentation in RST markupMartin Panter2017-01-241-39/+39
| |
* | Merge from 3.5Andrew Kuchling2016-11-091-1/+1
|\ \ | |/
| * Use http instead of https, due to certificate errorAndrew Kuchling2016-11-091-1/+1
| |
* | Merge from 3.5Andrew Kuchling2016-11-091-1/+1
|\ \ | |/
| * Update URL for requests documentation after IRC requestAndrew Kuchling2016-11-091-1/+1
| |
* | Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
|\ \ | |/
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
| |
* | Issue #28022: Deprecate ssl-related arguments in favor of SSLContext.Christian Heimes2016-09-101-0/+6
| | | | | | | | | | | | | | The deprecation include manual creation of SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib. ssl.wrap_socket() is not marked as deprecated yet.
* | Issue #12319: Always send file request bodies using chunked encodingMartin Panter2016-08-271-8/+7
| | | | | | | | | | | | | | The previous attempt to determine the file’s Content-Length gave a false positive for pipes on Windows. Also, drop the special case for sending zero-length iterable bodies.
* | Issue #12319: Support for chunked encoding of HTTP request bodiesMartin Panter2016-08-241-23/+37
|/ | | | | | | | | | | | | | | When the body object is a file, its size is no longer determined with fstat(), since that can report the wrong result (e.g. reading from a pipe). Instead, determine the size using seek(), or fall back to chunked encoding for unseekable files. Also, change the logic for detecting text files to check for TextIOBase inheritance, rather than inspecting the “mode” attribute, which may not exist (e.g. BytesIO and StringIO). The Content-Length for text files is no longer determined ahead of time, because the original logic could have been wrong depending on the codec and newline translation settings. Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me.
* [merge from 3.4] - Prevent HTTPoxy attack (CVE-2016-1000110)Senthil Kumaran2016-07-311-0/+15
|\ | | | | | | | | | | | | Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates that the script is in CGI mode. Issue #27568 Reported and patch contributed by Rémi Rampin.
| * [merge from 3.3] Prevent HTTPoxy attack (CVE-2016-1000110)Senthil Kumaran2016-07-311-0/+13
| |\ | | | | | | | | | | | | | | | | | | Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates that the script is in CGI mode. Issue #27568 Reported and patch contributed by Rémi Rampin.
| | * Prevent HTTPoxy attack (CVE-2016-1000110)Senthil Kumaran2016-07-311-0/+13
| | | | | | | | | | | | | | | | | | | | | Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates that the script is in CGI mode. Issue #27568 Reported and patch contributed by Rémi Rampin.
* | | English spelling and grammar fixesMartin Panter2016-07-111-1/+1
| | |
* | | Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+4
| | | | | | | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | | Fix typos in code comment and documentationMartin Panter2016-06-041-1/+1
| | |
* | | #22797: clarify when URLErrors are raised by urlopen.R David Murray2016-06-031-1/+1
| | |
* | | Issue #25570: Add example of customizing User-Agent via add_header()Martin Panter2016-06-011-1/+6
| | |
* | | Issue #26553: Capitalization of HTTP, HTTPS, FTP, and URLMartin Panter2016-05-281-7/+7
| | | | | | | | | | | | Patch by Anish Shah and Aatish Neupane.
* | | Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-1/+1
| | | | | | | | | | | | Original patch by James Edwards.
* | | Issue #26736: Used HTTPS for external links in the documentation if possible.Serhiy Storchaka2016-05-071-2/+2
| | |
* | | Issue #26804: urllib.request will prefer lower_case proxy environment variablesSenthil Kumaran2016-04-251-0/+2
| | | | | | | | | | | | | | | | | | over UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. Reviewed by Martin Panter and Senthil Kumaran.
* | | Issue23806 - Document the no_proxy environment variable in Python 3 docs.Senthil Kumaran2016-04-231-0/+5
| | |
* | | Closes #25910: fix dead and permanently redirected links in the docs. Thanks ↵Georg Brandl2016-02-261-1/+1
| | | | | | | | | | | | to SilentGhost for the patch.
* | | Issue #22989, #21228: Merge urlopen() doc from 3.4 into 3.5Martin Panter2015-11-261-7/+13
|\ \ \ | |/ /
| * | Issues #22989, #21228: Document HTTP response object for urlopen()Martin Panter2015-11-261-7/+13
| | | | | | | | | | | | | | | | | | Previous documentation was not clear if the geturl(), info() and getcode() were valid for HTTP responses. The “msg” attribute is different to the usual HTTPResponse.msg attribute. Based on patch by Evens Fortuné.
* | | Issue #25576: Merge www-form-urlencoded doc from 3.4 into 3.5Martin Panter2015-11-241-23/+8
|\ \ \ | |/ /
| * | Issue #25576: Remove application/x-www-form-urlencoded charset adviceMartin Panter2015-11-241-23/+8
| | | | | | | | | | | | | | | No charset parameter is standardized for this Content-Type value. Also clarify that urlencode() outputs ASCII.
* | | Merge typo and grammar fixes from 3.4 into 3.5Martin Panter2015-11-141-1/+1
|\ \ \ | |/ /
| * | Correct Content-Type syntax in documentationMartin Panter2015-11-141-1/+1
| | |
* | | Issue #25523: Merge a-to-an corrections from 3.4.Serhiy Storchaka2015-11-021-1/+1
|\ \ \ | |/ /
| * | Issue #25523: Further a-to-an corrections.Serhiy Storchaka2015-11-021-1/+1
| | |
* | | Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-101-1/+1
|\ \ \ | |/ /
| * | Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| | |
| * | Back porting changeset db302b88fdb6 to 3.4 branch, which fixed multiple ↵Senthil Kumaran2015-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | documentation typos. Related Issues: #issue21528 #issue24453
* | | merge 3.4 (#23989)Benjamin Peterson2015-04-201-0/+5
|\ \ \ | |/ /
| * | recommend requests library (closes #23989)Benjamin Peterson2015-04-201-0/+5
| | | | | | | | | | | | Patch from Van Lindberg
| * | fix grammarBenjamin Peterson2015-04-201-1/+1
| | |
* | | Fix two typos in AbstractBasicAuthHandler documentation.Berker Peksag2015-04-171-2/+3
| | |
* | | #7159: generalize urllib prior auth support.R David Murray2015-04-161-12/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix is a superset of the functionality introduced by the issue #19494 enhancement, and supersedes that fix. Instead of a new handler, we have a new password manager that tracks whether we should send the auth for a given uri. This allows us to say "always send", satisfying #19494, or track that we've succeeded in auth and send the creds right away on every *subsequent* request. The support for using the password manager is added to AbstractBasicAuth, which means the proxy handler also now can handle prior auth if passed the new password manager. Patch by Akshit Khurana, docs mostly by me.
* | | Issue #12955: Change the urlopen() examples to use context managers where ↵Berker Peksag2015-04-121-13/+21
|\ \ \ | |/ / | | | | | | | | | | | | appropriate. Patch by Martin Panter.
| * | Issue #12955: Change the urlopen() examples to use context managers where ↵Berker Peksag2015-04-121-13/+21
| | | | | | | | | | | | | | | | | | appropriate. Patch by Martin Panter.
* | | merge 3.4Benjamin Peterson2014-11-231-4/+1
|\ \ \ | |/ /
| * | document that cadefault does nothing nowBenjamin Peterson2014-11-231-4/+1
| | |
* | | Close #19494: add urrlib.request.HTTPBasicPriorAuthHandlerNick Coghlan2014-11-121-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This auth handler adds the Authorization header to the first HTTP request rather than waiting for a HTTP 401 Unauthorized response from the server as the default HTTPBasicAuthHandler does. This allows working with websites like https://api.github.com which do not follow the strict interpretation of RFC, but more the dicta in the end of section 2 of RFC 2617: > A client MAY preemptively send the corresponding Authorization > header with requests for resources in that space without receipt > of another challenge from the server. Similarly, when a client > sends a request to a proxy, it may reuse a userid and password in > the Proxy-Authorization header field without receiving another > challenge from the proxy server. See section 4 for security > considerations associated with Basic authentication. Patch by Matej Cepl.
* | | context has been backported so fix versionchangedBenjamin Peterson2014-11-031-1/+1
| | |
* | | merge 3.4 (#22417)Benjamin Peterson2014-11-031-5/+0
|\ \ \ | |/ /
| * | PEP 476: enable HTTPS certificate verification by default (#22417)Benjamin Peterson2014-11-031-5/+0
| | | | | | | | | | | | Patch by Alex Gaynor with some modifications by me.
* | | merge 3.4Benjamin Peterson2014-11-021-2/+3
|\ \ \ | |/ /