Cory Benfield
3bc01eed6f
RequestException subclasses IOError.
2013-08-17 07:17:03 +01:00
Kenneth Reitz
d8268fb7b4
Merge pull request #1515 from schlamar/https-proxy-2.0
...
[2.0] Https proxy support
2013-08-14 13:41:08 -07:00
Cory Benfield
2e5a674601
Add proxy_headers functionality.
...
This brings us in line with urllib3's fancy new magic for sending
headers to HTTP(S) proxies.
2013-08-14 09:47:44 +01:00
Cory Benfield
a5e5a51fb4
Catch UnsupportedOperation.
2013-08-03 19:24:23 +01:00
ms4py
c951f0543c
Cache manager for proxy connection.
2013-08-03 13:59:28 +02:00
ms4py
134699faf9
Fix for new proxy API.
2013-08-03 13:57:15 +02:00
ms4py
d06dabab59
Update urllib3 to 14b8945
2013-08-03 13:55:19 +02:00
Cory Benfield
5a26241287
Better percent-escape exception.
2013-08-02 12:29:23 +01:00
Kenneth Reitz
bd1f1404a0
Merge branch 'fix_401_cookies' of git://github.com/sigmavirus24/requests into 2.0
2013-07-31 21:33:24 -04:00
Kenneth Reitz
f865d61713
Merge branch 'proxyscheme' of git://github.com/Lukasa/requests into 2.0
2013-07-31 21:27:01 -04:00
Kenneth Reitz
1a6637c285
Merge branch 'keytype' of git://github.com/Lukasa/requests into 2.0
2013-07-31 21:25:57 -04:00
Kenneth Reitz
22701d149a
Merge pull request #1500 from gavrie/master
...
Update urllib3 to d89d508
2013-07-31 18:23:43 -07:00
Kenneth Reitz
d5a8816926
Merge pull request #1498 from Lukasa/incompleteread
...
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-31 18:23:14 -07:00
Kenneth Reitz
6b13ecdc85
Merge pull request #1501 from sigmavirus24/remove_setting_of_hooks
...
Fix duplication of efforts caught by @dofelw
2013-07-31 18:22:58 -07:00
Kenneth Reitz
7eb9a9298e
Merge pull request #1506 from Lukasa/mockrequest
...
Provide 'host' parameter to MockRequest.
2013-07-31 18:22:02 -07:00
Robert Estelle
0ab7a52f7c
Merge settings when creating PreparedRequest, don't copy Request.
2013-07-31 13:42:02 -07:00
Robert Estelle
ee90f0af60
Shallow copy of Request fields in Request.copy()
...
This prevents e.g. modifying the headers of a copied request from
affecting the headers of its source and vice versa. Copying is used with
the intent to mutuate, so allowing this kind of mutation of fields makes
sense.
Is a deep copy better?
2013-07-30 22:59:53 -07:00
Robert Estelle
9edba838b3
Skip unneccessary Request.copy in Session.request
2013-07-30 22:59:11 -07:00
Robert Estelle
b5c136152f
Prepare requests with session settings separately from sending.
2013-07-30 21:39:36 -07:00
Cory Benfield
6ef3710970
Provide 'host' parameter to MockRequest.
2013-07-30 18:21:37 +01:00
Cory Benfield
7de6b1e162
Instantiate the CID directly.
...
No need to do this the slow way now. Thanks to Colin (@cdunklau) for the
idea.
2013-07-29 14:52:44 +01:00
Cory Benfield
f5775594cc
Header keys should be native strings.
...
This commit follows a discussion on IRC. For more information, see the
Pull Request associated with it.
2013-07-29 14:52:44 +01:00
Ian Cordasco
37786613e0
Fix duplication of efforts caught by @dofelw
2013-07-29 08:09:07 -05:00
Gavrie Philipson
ea2b639d31
Update urllib3 to d89d508
2013-07-29 11:29:41 +03:00
Cory Benfield
79f3e69f5e
Wrap IncompleteRead in ChunkedEncodingError.
2013-07-28 07:42:17 +01:00
Cory Benfield
840540b6b1
Proxy urls should have explicit schemes.
2013-07-28 07:16:06 +01:00
Cory Benfield
9473f15909
Merge pull request #1494 from Lukasa/close
...
Document the Response.close() method.
2013-07-27 23:04:34 -07:00
Ian Cordasco
286ddb672d
Take advantage of the new copy method
2013-07-27 23:08:46 -04:00
Ian Cordasco
972089826e
Fixed finally. Also requires updated httpbin.org
2013-07-27 23:07:25 -04:00
Ian Cordasco
c25a72ea24
Make the regular tests pass
...
I broke Digest Auth completely
2013-07-27 23:07:25 -04:00
Ian Ross and Ian Cordasco
73635df1b2
Start work on sending cookies back
...
On 401's the cookies received aren't sent back to the server. See: #1336
2013-07-27 23:07:25 -04:00
Kenneth Reitz
77bd9c4a9d
Merge pull request #1476 from sigmavirus24/add_copy_to_prepared_requests
...
[2.0] Add copy method to PreparedRequest objects
2013-07-26 18:16:00 -07:00
Cory Benfield
f401287afb
Document the Response.close() method.
2013-07-25 19:10:42 +01:00
Cory Benfield
3becc47366
Comment markups, courtesy of @sigmavirus24
2013-07-24 16:03:24 +01:00
Cory Benfield
f40a1d6a8a
Better cookie docs on sessions.
2013-07-24 13:25:59 +01:00
David Pursehouse
9e771aa79c
Fix test cases that fail when running behind a proxy
...
When sending a request via `Session.send()` the proxies must be
explicitly given with the `proxies` argument. This is not done
in the test cases, which means that they fail when run on a system
that is behind a proxy.
Update test cases to make sure the proxies are set in the sessions.
2013-07-23 16:55:27 +09:00
David Pursehouse
4f64938ff0
Fix a few warnings flagged by PyDev
...
- Unused import of urlparse
- Unnecessary definition of variable
- Incorrect indentation
2013-07-22 17:14:45 +09:00
Ian Cordasco
b84547d786
Add copy method to PreparedRequest objects
2013-07-20 17:08:35 -04:00
Audrius Butkevicius
9f119ee420
Update urllib3 to a43319f
2013-07-18 21:06:19 +00:00
Kenneth Reitz
65a0fd88a9
Merge pull request #1440 from fcurella/patch-0
...
unquote double-quotes cookie values
2013-07-15 06:54:00 -07:00
Kenneth Reitz
4b7cf389e4
Merge pull request #1439 from voberoi/master
...
Make sure netrc doesn't override any authentication settings explicitly set by the client
2013-07-15 06:22:53 -07:00
Kenneth Reitz
86d466c745
Merge pull request #1441 from Lukasa/1395
...
Remove urllib3-specific kwargs from non-urllib3 branch.
2013-07-15 06:22:41 -07:00
Philippe Ndiaye
18a736fbe6
Set 208 status_code to "already_reported"
2013-07-13 11:08:01 +02:00
Philippe Ndiaye
7bdf37bc27
Changed the "im_used" informational status code for the value given by IANA (226)
...
See RFC 3229 at http://tools.ietf.org/html/rfc3229#section-10.4.1 and HTTP status codes at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
2013-07-13 09:55:50 +02:00
Cory Benfield
555472bf1e
Remove urllib3-specific kwargs from general code
2013-07-04 10:34:43 +01:00
Flavio Curella
a8cf5b8502
keep the double quotes, but don't escape them
2013-07-01 15:48:48 -05:00
Flavio Curella
cdab4fabf4
unquote double-quotes cookie values
2013-07-01 13:51:40 -05:00
Vikram Oberoi
188e7609b3
.netrc settings shouldn't blow away explicit auth settings on a session
2013-06-27 16:43:40 -04:00
Chen Huang
9083735963
@1434 Fix https://github.com/kennethreitz/requests/issues/1434
2013-06-25 18:38:59 -04:00
Cory Benfield
1faa76a86f
Use the new urllib3 stream generator.
2013-06-18 17:56:35 +01:00