Mercurial > hg > orthanc-book
comparison Sphinx/source/users/rest.rst @ 676:109d663abac0
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 May 2021 14:58:25 +0200 |
parents | aba6dac03d16 |
children | ca814560dcb8 |
comparison
equal
deleted
inserted
replaced
675:aba6dac03d16 | 676:109d663abac0 |
---|---|
39 .. highlight:: bash | 39 .. highlight:: bash |
40 | 40 |
41 Unfortunately, the default command-line prompt of Microsoft Windows | 41 Unfortunately, the default command-line prompt of Microsoft Windows |
42 **doesn't support single-quote characters**. If you copy/paste a cURL | 42 **doesn't support single-quote characters**. If you copy/paste a cURL |
43 command-line from this page that mixes single-quote and double-quotes, | 43 command-line from this page that mixes single-quote and double-quotes, |
44 you'll have to replace single-quotes by double-quotes, and prefix the | 44 it won't work as such, and you'll have to replace single-quotes by |
45 double-quotes by a backslash character. For instance, consider the | 45 double-quotes, and prefix the double-quotes by a backslash |
46 following command line that works fine on GNU/Linux:: | 46 character. For instance, consider the following command line that |
47 works fine on GNU/Linux:: | |
47 | 48 |
48 $ curl -v -X PUT http://localhost:8042/modalities/sample \ | 49 $ curl -v -X PUT http://localhost:8042/modalities/sample \ |
49 -d '{"AET" : "ORTHANCC", "Host": "127.0.0.1", "Port": 2002}' | 50 -d '{"AET" : "ORTHANCC", "Host": "127.0.0.1", "Port": 2002}' |
50 | 51 |
51 This call will **not** work on the Microsoft Windows prompt as it | 52 This call will **not** work on the Microsoft Windows prompt as it |