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
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
Cory Benfield
840540b6b1
Proxy urls should have explicit schemes.
2013-07-28 07:16:06 +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
Viktor Haag
01993d21dc
added tests for mixed-case scheme URLs, changed adapters passing down URLs into urllib3 by lower-ifying them so that the underlying pool manager can effectively pool by scheme as dictionary key
2013-05-24 16:14:14 -04:00
Viktor Haag
5e94f38001
- fixed func call syntax on lower to lower()
...
- added test cases for trying to test GETS on mixed-case schemas
2013-05-24 14:01:30 -04:00
Viktor Haag
3004ad5398
Lower-ify url before checking against prefix with startswith()
2013-05-24 11:26:00 -04:00
Randy Merrill
c03e14242b
Adding the _pool_bloc to the list of attrs.
2013-05-11 18:30:31 -07:00
Randy Merrill
9cb3d6444d
Fixing the call to init_poolmanagers to correctly unpickle the adapter.
2013-05-11 18:13:08 -07:00
Randy Merrill
053613688b
Moving the order of the arguments in the init to not interfere with existing usage.
2013-05-11 18:04:43 -07:00
Randy Merrill
2eb682671d
Adding an argument to the adapter for passing a block argument to the connection pool.
...
This allows for blocking when using threading to prevent the pool from creating more connections that the max-size allows.
Specifically was seeing the following errors without the block=True:
WARNING:requests.packages.urllib3.connectionpool:HttpConnectionPool is full, discarding connection: www.example.com
2013-05-10 23:46:54 -07:00
Daniel Lindsley
36dcce1a06
Changed HTTPAdapter to allow max retries to be specified when initializing.
2013-04-12 16:40:39 -07:00
Cory Benfield
c73f653352
Add HTTPAdapter to API docs.
2013-04-09 19:54:47 +01:00
Florian Mueller
c41932e184
Fixed some pickeling issues with HTTPAdapter and Session
...
Added trust_env and stream to Session.__attrs__. Initialize
self._pool_connections and self._pool_maxsize in HTTPAdapter.
2013-03-12 16:04:19 +01:00
Darjus Loktevic
e706d18cf8
Pickling of Session and HTTPAdapter + a test
...
This is for issue #1088
2013-03-11 18:12:34 +00:00
Kenneth Reitz
23d8522285
Revert "[ kennethreitz/requests#1208 ] adding a max_retries argument"
...
This reverts commit 796d3225dd .
2013-03-03 12:01:38 -05:00
Wilfred Hughes
796d3225dd
[ kennethreitz/requests#1208 ] adding a max_retries argument
2013-02-27 16:01:23 +00:00
Kenneth Reitz
1fc567449c
Merge pull request #1210 from Lukasa/urlencode_proxy
...
Unquote proxy usernames and passwords.
2013-02-25 02:31:00 -08:00
Kenneth Reitz
c01bc5be5b
Revert "Lukasa is lazy"
...
This reverts commit 178ff62b93 .
2013-02-22 08:23:34 -05:00
Cory Benfield
577dba2bf7
Unquote proxy usernames and passwords.
2013-02-22 11:33:01 +11:00
Kenneth Reitz
178ff62b93
Lukasa is lazy
2013-02-20 02:11:41 -05:00
Cory Benfield
c2480f65e6
Rethrow underlying exceptions.
2013-02-18 16:30:16 +11:00
Cory Benfield
d437c338d0
Add Proxy-Auth header when proxies have credentials.
2013-02-06 18:40:35 +00:00
Ian Cordasco
c8ad4f0b73
Move the timing work to Session.send
...
per @kennethreitz 's request
2013-01-28 11:53:02 -05:00
Chris Lee
318300848f
Use timedelta and change attribute name back to elapsed
2013-01-27 19:07:48 -08:00
Chris Lee
d4aaef1e9a
Time how long each request takes
...
Stored as attribute Response.time_taken
2013-01-27 19:06:50 -08:00
Ian Cordasco
e1c4fe21d4
Fix #1106
2013-01-19 11:49:52 -05:00
László Vaskó
347a52aa5c
Fixed proxy requests to pool connections.
2013-01-18 13:41:14 +01:00
Kenneth Reitz
ef8563ab36
CHUNKED REQUESTS!
2013-01-10 01:58:29 -05:00
Ian Cordasco
5264c71d86
Fix #1079
...
Restore the functionality from here:
https://github.com/kennethreitz/requests/blob/v0.14.2/requests/models.py#L884
2013-01-02 14:25:33 -05:00
Cory Benfield
054e1ab3ee
Remove silly print statement.
2012-12-28 15:38:04 +00:00
Cory Benfield
641f4611b2
Make sure proxies have their scheme attached.
2012-12-27 13:37:36 +00:00
Cory Benfield
702f4039bc
Use full URL when contacting proxies.
...
Requests should use the full URL, not the path URL, when forwarding
traffic through proxies.
2012-12-27 11:22:36 +00:00
Cory Benfield
09da1921ff
Import basestring.
2012-12-19 21:37:47 +00:00
Cory Benfield
f1ba27faa2
Fix stupid, stupid logic error.
2012-12-19 20:26:41 +00:00
Cory Benfield
8cb904b49d
Correctly identify cert files.
...
Resolves issue #1046 .
2012-12-19 20:11:17 +00:00
Ian Cordasco
68d394952a
A bit of linting.
...
Mostly removed a whole bunch of unused imports.
2012-12-17 20:19:11 -05:00
Kenneth Reitz
5eb3a17b55
v1.0.2
2012-12-17 13:58:07 -05:00
Kenneth Reitz
5152c98223
fix for #1017
2012-12-17 13:52:46 -05:00
Kenneth Reitz
1e64fbcb55
CURL_CA_BUNDLE
2012-12-17 13:41:20 -05:00
Kenneth Reitz
910b2312d6
fix verify bug
...
Fixes #1019
2012-12-17 13:38:38 -05:00
Kenneth Reitz
a982b0d903
proxy manager
2012-12-17 07:21:10 -05:00
Kenneth Reitz
4c3b9df609
/s/prefetch/stream
2012-12-17 06:35:01 -05:00
Kenneth Reitz
5b5d8a81b7
remove bunk
2012-12-17 06:26:22 -05:00
Kenneth Reitz
bc4af7c7e1
docstrings
2012-12-17 06:25:47 -05:00
Kenneth Reitz
ca0d08eeda
urlparse(url)
2012-12-17 06:25:03 -05:00
Kenneth Reitz
42ee255c80
no staticmethod
2012-12-17 04:56:16 -05:00
Kenneth Reitz
4837900832
digest works!
...
added some nice backwards compatible stuff too
2012-12-17 04:55:58 -05:00
Kenneth Reitz
2b4ca0b0dc
redorder imports
2012-12-17 03:32:24 -05:00