Revision a9f27253 doc/rapi.rst
b/doc/rapi.rst | ||
---|---|---|
71 | 71 |
# write access) |
72 | 72 |
superuser {HA1}ec018ffe72b8e75bb4d508ed5b6d079c read,write |
73 | 73 |
|
74 |
When using the RAPI, username and password can be sent to the server |
|
75 |
by using the standard HTTP basic access authentication. This means that |
|
76 |
for accessing the protected URL ``https://cluster.example.com/resource``, |
|
77 |
the address ``https://username:password@cluster.example.com/resource`` should |
|
78 |
be used instead. |
|
74 | 79 |
|
75 | 80 |
.. [#pwhash] Using the MD5 hash of username, realm and password is |
76 | 81 |
described in :rfc:`2617` ("HTTP Authentication"), sections 3.2.2.2 |
... | ... | |
265 | 270 |
|
266 | 271 |
.. highlight:: shell-example |
267 | 272 |
|
268 |
Using wget::
|
|
273 |
Using ``wget``::
|
|
269 | 274 |
|
270 | 275 |
$ wget -q -O - https://%CLUSTERNAME%:5080/2/info |
271 | 276 |
|
272 |
or curl::
|
|
277 |
or ``curl``::
|
|
273 | 278 |
|
274 | 279 |
$ curl https://%CLUSTERNAME%:5080/2/info |
275 | 280 |
|
281 |
Note: with ``curl``, the request method (GET, POST, PUT) can be specified |
|
282 |
using the ``-X`` command line option. |
|
276 | 283 |
|
277 | 284 |
Python |
278 | 285 |
++++++ |
Also available in: Unified diff