Mercurial > hg > orthanc-book
comparison Sphinx/source/users/lua.rst @ 90:e6a15f619786
added headers in HttpPost/Delete/Get/Put
author | amazy |
---|---|
date | Thu, 02 Feb 2017 21:28:28 +0100 |
parents | d6bd1dd820e5 |
children | 025744919357 |
comparison
equal
deleted
inserted
replaced
89:c9a33e4a0577 | 90:e6a15f619786 |
---|---|
153 | 153 |
154 Similarly to the functions to :ref:`call the REST API of Orthanc | 154 Similarly to the functions to :ref:`call the REST API of Orthanc |
155 <lua-rest>`, several functions are available to make generic HTTP | 155 <lua-rest>`, several functions are available to make generic HTTP |
156 requests to Web services: | 156 requests to Web services: |
157 | 157 |
158 * ``HttpGet(url)`` | 158 * ``HttpGet(url, headers)`` |
159 * ``HttpPost(url, body)`` | 159 * ``HttpPost(url, body, headers)`` |
160 * ``HttpPut(url, body)`` | 160 * ``HttpPut(url, body, headers)`` |
161 * ``HttpDelete(url)`` | 161 * ``HttpDelete(url, headers)`` |
162 * ``SetHttpCredentials(username, password)`` can be used to setup the | 162 * ``SetHttpCredentials(username, password)`` can be used to setup the |
163 HTTP credentials. | 163 HTTP credentials. |
164 | 164 |
165 The ``headers`` argument has been added in release 1.2.1. | |
165 | 166 |
166 .. _lua-origin: | 167 .. _lua-origin: |
167 | 168 |
168 Origin of the instances | 169 Origin of the instances |
169 ^^^^^^^^^^^^^^^^^^^^^^^ | 170 ^^^^^^^^^^^^^^^^^^^^^^^ |