comparison Sphinx/source/users/rest.rst @ 1021:a3436ae3709c Orthanc-1.12.3

Orthanc 1.12.3
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 31 Jan 2024 14:01:54 +0100
parents 2e103fb1fa11
children d2be251975d1
comparison
equal deleted inserted replaced
1020:3f4a7ee8033b 1021:a3436ae3709c
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://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.2/OrthancServer/Resources/Samples/ImportDicomFiles/ImportDicomFiles.py>`__ 101 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.3/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://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.2/OrthancServer/Resources/Samples/ImportDicomFiles/OrthancImport.py>`__. 113 <https://orthanc.uclouvain.be/hg/orthanc/file/Orthanc-1.12.3/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