Ian Cordasco
c0cb698191
Derp. Use compat
2013-07-23 10:48:45 -05:00
Ian Cordasco
d2176cf052
Use urlparse.urljointo construct httpbin url
2013-07-23 10:24:30 -05:00
Kenneth Reitz
f71bff1226
Merge pull request #1482 from dpursehouse/fix-testcases-with-proxy
...
Fix test cases that fail when running behind a proxy
2013-07-23 05:23:35 -07:00
Kenneth Reitz
47f5a0db64
Merge pull request #1483 from dpursehouse/httpbin-url-without-trailing-slash
...
Test cases fail when `HTTPBIN_URL` does not have trailing slash
2013-07-23 05:23:11 -07: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
29db7b7216
Test cases fail when HTTPBIN_URL does not have trailing slash
...
Test cases can be run against a local httpbin server defined by
the `HTTPBIN_URL` environment variable, but it causes tests to
fail if the given URL does not end with a slash.
Ensure that the URL always ends with a slash.
2013-07-23 15:29:36 +09:00
Kenneth Reitz
66de6b528d
Merge pull request #1479 from dpursehouse/fix-warnings
...
Fix a few warnings flagged by PyDev
2013-07-22 01:31:16 -07: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
Kenneth Reitz
e5597dfcce
Merge pull request #1478 from dpursehouse/add-me-to-authors
...
Add myself to the authors list
2013-07-22 00:09:35 -07:00
David Pursehouse
787c1e8c6e
Add myself to the authors list
2013-07-22 15:19:10 +09:00
Cory Benfield
ec6584f2d1
Merge pull request #1477 from dpursehouse/other-auth-basic-example
...
Add a simple example of custom authentication in the documentation
2013-07-21 23:04:31 -07:00
David Pursehouse
62f0df4434
Add a simple example of custom authentication in the documentation
...
Refs #1471
2013-07-22 09:14:33 +09:00
David Pursehouse
5cdcf58b3b
Wrap long lines in the authentication documentation
2013-07-22 09:08:47 +09:00
Kenneth Reitz
d83919a6f7
Merge pull request #1474 from Kwpolska/docfix
...
Some tiny fixes to the documentation
2013-07-20 05:15:06 -07:00
Kwpolska
2ef782b8e6
further treatment
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:54:33 +02:00
Kwpolska
b738c97ec3
session object should be uppercase
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:39:50 +02:00
Kwpolska
022c370bcd
fixed underline
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:31:37 +02:00
Kwpolska
587385bfe0
Grammar fixes and such
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 12:56:25 +02:00
Kwpolska
ca033b83fe
Some cosmetic updates to the docs
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 12:12:57 +02:00
Cory Benfield
949a29c34f
Merge pull request #1470 from Lukasa/carset
...
Remove charset from JSON types: not valid.
2013-07-19 06:45:56 -07:00
Cory Benfield
be884341f4
Merge pull request #1465 from dpursehouse/doc-netrc-authentication
...
Improve documentation of netrc authentication
2013-07-19 06:45:17 -07:00
David Pursehouse
c88fd8cc9d
Move netrc authentication documentation under the Basic Auth section
2013-07-19 22:37:57 +09:00
Cory Benfield
8385fb397b
Remove charset from JSON types: not valid.
2013-07-19 14:03:20 +01:00
Cory Benfield
e0df4b5f18
Merge pull request #1466 from s7v7nislands/fix_doc
...
Fix doc
2013-07-19 04:12:29 -07:00
s7v7nislands
39ad5e7388
merge
2013-07-19 17:12:01 +08:00
s7v7nislands
0df505bd7c
fix doc
2013-07-19 17:04:53 +08:00
David Pursehouse
6f6a920a68
Improve documentation of netrc authentication
...
The documentation does not make it clear that when the credentials
from netrc are used, Requests authenticates with HTTP Basic Auth.
I just spent ages trying to figure out why it wasn't working, and
it was because although the credentials in the netrc were correct,
the server actually required HTTP Digest Auth.
Add a section in the authentication documentation to make it clear
that HTTP Basic Auth is used.
2013-07-19 17:30:54 +09:00
Cory Benfield
32293655ff
Merge pull request #1464 from dpursehouse/document-none-not-sent
...
Fix #1322 : Add note in docs about None not being sent as data
2013-07-19 01:19:55 -07:00
David Pursehouse
07ad75ee04
Fix #1322 : Add note in docs about None not being sent as data
...
In the case:
payload = {'key1': 'value1', 'key2': 'value2', 'key3': None}
r = requests.get("http://httpbin.org ", params=payload)
the parameter `key3` will not be sent as a parameter in the URL.
Mention this in the documentation.
2013-07-19 17:14:59 +09:00
Kenneth Reitz
e4b41320e6
Merge pull request #1463 from AudriusButkevicius/master
...
Update urllib3 to a43319f
2013-07-18 15:00:28 -07:00
Audrius Butkevicius
9f119ee420
Update urllib3 to a43319f
2013-07-18 21:06:19 +00:00
Kenneth Reitz
e0df2168b7
Merge remote-tracking branch 'origin/master'
2013-07-16 02:20:28 -04:00
Kenneth Reitz
d7e8073198
badge.fury.io
2013-07-16 02:20:23 -04: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
Kenneth Reitz
de9d84489b
Merge pull request #1456 from phndiaye/master
...
Changed the "im_used" informational status code for the value given by IANA (226)
2013-07-15 06:21:31 -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
Kenneth Reitz
41517e2111
Delete invokefile.py
2013-07-06 14:04:50 +10:00
Cory Benfield
555472bf1e
Remove urllib3-specific kwargs from general code
2013-07-04 10:34:43 +01:00
Flavio Curella
7da16c584a
Added myself to AUTHORS
2013-07-01 15:54:59 -05: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
d9c49ad30d
Add test to verify .netrc authentication behavior.
...
Here's what should happen:
- If no credentials are given, use netrc if there's a netrc entry.
- If credentials are given, they should override netrc.
2013-06-27 17:16:42 -04:00
Vikram Oberoi
188e7609b3
.netrc settings shouldn't blow away explicit auth settings on a session
2013-06-27 16:43:40 -04:00
Cory Benfield
2b62980e26
Merge pull request #1437 from lukaszb/patch-1
...
Fixed wrong method call at streaming example
2013-06-27 11:18:56 -07:00
Lukasz Balcerzak
805abee9b4
Fixed wrong method call at streaming example
...
405 is returned if POST request is performed to http://httpbin.org/stream/20
2013-06-27 13:37:39 +02:00
Kenneth Reitz
a1bb7fb0d2
Merge pull request #1435 from chinux23/master
...
@1434 https://github.com/kennethreitz/requests/issues/1434
2013-06-25 15:49:04 -07:00
Chen Huang
9083735963
@1434 Fix https://github.com/kennethreitz/requests/issues/1434
2013-06-25 18:38:59 -04:00