aboutsummaryrefslogtreecommitdiffstats
path: root/docs/howto/usingcurl.rst
diff options
context:
space:
mode:
authorTom Christie2011-06-02 13:34:23 +0100
committerTom Christie2011-06-02 13:34:23 +0100
commit5591a71a13d35b8d3eba747a880c6e213eaae111 (patch)
tree7196d42153f3e263d7f504dbacdb2d6ca967e89b /docs/howto/usingcurl.rst
parentb50492853f537a2473bb0a9eea86c8b0ed6b8824 (diff)
downloaddjango-rest-framework-5591a71a13d35b8d3eba747a880c6e213eaae111.tar.bz2
updating docs for 0.2
Diffstat (limited to 'docs/howto/usingcurl.rst')
-rw-r--r--docs/howto/usingcurl.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/howto/usingcurl.rst b/docs/howto/usingcurl.rst
index e7edfef9..2ad2c764 100644
--- a/docs/howto/usingcurl.rst
+++ b/docs/howto/usingcurl.rst
@@ -23,4 +23,8 @@ There are a few things that can be helpful to remember when using CURL with djan
#. Or any other content type::
- curl -X PUT -H 'Content-Type: application/json' --data-binary '{"foo":"bar"}' http://example.com/my-api/some-resource/ \ No newline at end of file
+ curl -X PUT -H 'Content-Type: application/json' --data-binary '{"foo":"bar"}' http://example.com/my-api/some-resource/
+
+#. You can use basic authentication to send the username and password::
+
+ curl -X GET -H 'Accept: application/json' -u <user>:<password> http://example.com/my-api/ \ No newline at end of file