Compare commits

...

8 Commits

Author SHA1 Message Date
Kenneth Reitz
0008b035e2 v0.7.3 2011-10-23 16:56:47 -04:00
Kenneth Reitz
be69529dca oops, debugging prints 2011-10-23 16:53:21 -04:00
Kenneth Reitz
e257151ffc Merge branch 'master' into develop 2011-10-23 16:10:24 -04:00
Kenneth Reitz
84a2b35b71 Readme update. 2011-10-23 16:03:06 -04:00
Kenneth Reitz
e15834da8e v0.7.2 2011-10-23 15:40:26 -04:00
Kenneth Reitz
f1bb25b1ec bugfix 2011-10-23 15:39:33 -04:00
Kenneth Reitz
6b9cb059f6 Merge branch 'develop' 2011-10-23 15:21:42 -04:00
Kenneth Reitz
5b5b3def00 Merge branch 'develop' 2011-10-22 22:14:15 -04:00
6 changed files with 25 additions and 23 deletions

View File

@@ -1,6 +1,18 @@
History
-------
0.7.3 (2011-10-23)
++++++++++++++++++
* Digest Auth fix.
0.7.2 (2011-10-23)
++++++++++++++++++
* PATCH Fix.
0.7.1 (2011-10-23)
++++++++++++++++++

View File

@@ -34,19 +34,15 @@ all the hard work and crazy hacks for you.
Features
--------
- Extremely simple HEAD, GET, POST, PUT, PATCH, DELETE Requests
+ Simple HTTP Header Request Attachment
+ Simple Data/Params Request Attachment
+ Simple Multipart File Uploads
+ CookieJar Support
+ Redirection History
+ Proxy Support
+ Redirection Recursion Urllib Fix
+ Auto Decompression of GZipped Content
+ Unicode URL Support
- Simple Authentication
+ Simple URL + HTTP Auth Registry
- Extremely simple HEAD, GET, POST, PUT, PATCH, DELETE Requests.
- Gevent support for Asyncronous Requests.
- Sessions with cookie persistience.
- Basic, Digest, and Custom Authentication support.
- Automatic form-encoding of dictionaries
- A simple dictionary interface for request/response cookies.
- Multipart file uploads.
- Automatc decoding of Unicode, gzip, and deflate responses.
- Full support for unicode URLs and domain names.
Usage

View File

@@ -15,8 +15,8 @@ requests
"""
__title__ = 'requests'
__version__ = '0.7.1'
__build__ = 0x000701
__version__ = '0.7.3'
__build__ = 0x000703
__author__ = 'Kenneth Reitz'
__license__ = 'ISC'
__copyright__ = 'Copyright 2011 Kenneth Reitz'

View File

@@ -91,7 +91,7 @@ def patch(url, data='', **kwargs):
:param **kwargs: Optional arguments that ``request`` takes.
"""
return request('patch', url, data='', **kwargs)
return request('patch', url, data=data, **kwargs)
def delete(url, **kwargs):

View File

@@ -108,13 +108,7 @@ def http_digest(r, username, password):
r.request.send(anyway=True)
_r = r.request.response
_r.history.append(r)
print _r.status_code
# r.request.response
print locals()
print _r.headers
return _r
return r

View File

@@ -2,7 +2,7 @@
"""
requests.session
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~
This module provides a Session object to manage and persist settings across
requests (cookies, auth, proxies).