comparison Sphinx/source/users/rest.rst @ 872:f72b2dd172da Orthanc-1.11.2

Orthanc 1.11.2
author Alain Mazy <am@osimis.io>
date Wed, 31 Aug 2022 12:06:15 +0200
parents 2cb6b69537c6
children 888df946c1be
comparison
equal deleted inserted replaced
871:ab39093b898f 872:f72b2dd172da
96 <https://stackoverflow.com/questions/463144/php-http-post-fails-when-curl-data-1024/463277#463277>`__:: 96 <https://stackoverflow.com/questions/463144/php-http-post-fails-when-curl-data-1024/463277#463277>`__::
97 97
98 $ curl -X POST -H "Expect:" http://localhost:8042/instances --data-binary @CT.X.1.2.276.0.7230010.dcm 98 $ curl -X POST -H "Expect:" http://localhost:8042/instances --data-binary @CT.X.1.2.276.0.7230010.dcm
99 99
100 The code distribution of Orthanc contains a `sample Python script 100 The code distribution of Orthanc contains a `sample Python script
101 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.1/OrthancServer/Resources/Samples/ImportDicomFiles/ImportDicomFiles.py>`__ 101 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.2/OrthancServer/Resources/Samples/ImportDicomFiles/ImportDicomFiles.py>`__
102 that recursively upload the content of some folder into Orthanc using 102 that recursively upload the content of some folder into Orthanc using
103 the REST API:: 103 the REST API::
104 104
105 $ python ImportDicomFiles.py localhost 8042 ~/DICOM/ 105 $ python ImportDicomFiles.py localhost 8042 ~/DICOM/
106 106
108 includes another Python script named ``OrthancImport.py`` that 108 includes another Python script named ``OrthancImport.py`` that
109 provides more features than ``ImportDicomFiles.py``. It can notably 109 provides more features than ``ImportDicomFiles.py``. It can notably
110 import the content of ``.zip``, ``.tar.gz`` or ``.tar.bz2`` archives 110 import the content of ``.zip``, ``.tar.gz`` or ``.tar.bz2`` archives
111 without having to uncompress them first. It also provides more 111 without having to uncompress them first. It also provides more
112 comprehensive command-line options. `Check this script out 112 comprehensive command-line options. `Check this script out
113 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.1/OrthancServer/Resources/Samples/ImportDicomFiles/OrthancImport.py>`__. 113 <https://hg.orthanc-server.com/orthanc/file/Orthanc-1.11.2/OrthancServer/Resources/Samples/ImportDicomFiles/OrthancImport.py>`__.
114 114
115 115
116 .. highlight:: perl 116 .. highlight:: perl
117 117
118 If you are using Powershell (>= 3.0), you can use the following to send a single 118 If you are using Powershell (>= 3.0), you can use the following to send a single