summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshagun Sodhani <sshagunsodhani@gmail.com>2015-10-16 17:01:36 +0530
committershagun Sodhani <sshagunsodhani@gmail.com>2015-10-16 17:01:36 +0530
commitb675377dc2a0b5552877dce523d375fc4cb17b76 (patch)
tree5fa70454d446bd9dbb5be2dc796f2985d3dfcc7c
parent58b20d671c67b0c74f0b1c0fe27ce886b9965191 (diff)
downloadpython-requests-b675377dc2a0b5552877dce523d375fc4cb17b76.tar.gz
added fix for #2826
-rw-r--r--AUTHORS.rst1
-rw-r--r--docs/user/quickstart.rst4
2 files changed, 3 insertions, 2 deletions
diff --git a/AUTHORS.rst b/AUTHORS.rst
index a765a19c..b0594a6b 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -160,3 +160,4 @@ Patches and Suggestions
- Paul van der Linden (`@pvanderlinden <https://github.com/pvanderlinden>`_)
- Colin Dickson (`@colindickson <https://github.com/colindickson>`_)
- Smiley Barry (`@smiley <https://github.com/smiley>`_)
+- Shagun Sodhani (`@shagunsodhani <https://github.com/shagunsodhani>`_)
diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst
index d08561d2..096693fb 100644
--- a/docs/user/quickstart.rst
+++ b/docs/user/quickstart.rst
@@ -37,12 +37,12 @@ get all the information we need from this object.
Requests' simple API means that all forms of HTTP request are as obvious. For
example, this is how you make an HTTP POST request::
- >>> r = requests.post("http://httpbin.org/post")
+ >>> r = requests.post("http://httpbin.org/post", data = {"key":"value"})
Nice, right? What about the other HTTP request types: PUT, DELETE, HEAD and
OPTIONS? These are all just as simple::
- >>> r = requests.put("http://httpbin.org/put")
+ >>> r = requests.put("http://httpbin.org/put", data = {"key":"value"})
>>> r = requests.delete("http://httpbin.org/delete")
>>> r = requests.head("http://httpbin.org/get")
>>> r = requests.options("http://httpbin.org/get")