Commit Graph

74 Commits

Author SHA1 Message Date
Ian Cordasco 1500632b60 Move comment to the right place 2013-12-13 22:29:30 -06:00
Erik Wickstrom 16f9798208 Fixed pickle support for requests.adapters.HTTPAdapter by adding
'proxy_manager' when unpickling.
2013-12-13 22:28:37 -06:00
Ian Cordasco cac2077c36 Prevent error when using proxies after picking an Adapter 2013-12-12 13:03:37 -06:00
kennethreitz 1cac72bfa9 Merge pull request #1669 from Lukasa/chunked
[WIP] Better chunked handling.
2013-12-05 14:36:10 -08:00
daftshady 4972133a9b use geturl to lower scheme 2013-11-19 19:54:46 +09:00
daftshady 8c8938e8cb issue #1746 : Don't lowercase the whole URL! 2013-11-19 18:59:22 +09:00
Matthew Schinckel edf7e5f420 Fix documentation typo. 2013-11-04 12:29:24 +10:30
Cory Benfield 9606f0240b PEP8 fix to make me happier. 2013-10-13 09:54:01 +01:00
Cory Benfield 31c0962e83 Better connection behaviour for chunked upload. 2013-10-13 09:53:44 +01:00
kennethreitz 43477edc91 Merge pull request #1636 from Lukasa/httpsprox
Don't send the full URL on CONNECT messages.
2013-10-07 16:23:18 -07:00
Graham Dumpleton 4291f76c99 Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError. 2013-10-04 16:07:11 +10:00
Cory Benfield 8b7fcfb49a Don't send the full URL on CONNECT messages. 2013-09-28 15:46:43 +01:00
Kenneth Reitz c93419f512 TimeoutSauce! 2013-09-24 14:31:00 -04:00
Kenneth Reitz 54ad646067 merge 2.0 insto master 2013-09-24 14:13:28 -04:00
Kenneth Reitz c64c0ab121 prototype for new urllib3 timeouts 2013-09-24 14:06:24 -04:00
Sayan Chowdhury 0a52d9405e minor typo: Fix requests spelling 2013-09-11 20:21:57 +05:30
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