Revision 681f4f7b doc/rapi.rst

b/doc/rapi.rst
91 91
  # write access)
92 92
  superuser {HA1}ec018ffe72b8e75bb4d508ed5b6d079c read,write
93 93

  
94
When using the RAPI, username and password can be sent to the server
95
by using the standard HTTP basic access authentication. This means that
96
for accessing the protected URL ``https://cluster.example.com/resource``,
97
the address ``https://username:password@cluster.example.com/resource`` should
98
be used instead.
94 99

  
95 100
.. [#pwhash] Using the MD5 hash of username, realm and password is
96 101
   described in :rfc:`2617` ("HTTP Authentication"), sections 3.2.2.2
......
285 290

  
286 291
.. highlight:: shell-example
287 292

  
288
Using wget::
293
Using ``wget``::
289 294

  
290 295
   $ wget -q -O - https://%CLUSTERNAME%:5080/2/info
291 296

  
292
or curl::
297
or ``curl``::
293 298

  
294 299
  $ curl https://%CLUSTERNAME%:5080/2/info
295 300

  
301
Note: with ``curl``, the request method (GET, POST, PUT) can be specified
302
using the ``-X`` command line option.
296 303

  
297 304
Python
298 305
++++++

Also available in: Unified diff