Mercurial > hg > orthanc-tests
comparison Database/Lua/HttpClient.lua @ 263:a2719263fd04
test_study_series_find_inconsistency
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 20 Feb 2020 19:58:30 +0100 |
parents | 7530eb50c3c4 |
children | 5ac463ebf463 |
comparison
equal
deleted
inserted
replaced
262:045a45c3f945 | 263:a2719263fd04 |
---|---|
35 if not testSucceeded then print('Failed in HttpPut without body') PrintRecursive(response) end | 35 if not testSucceeded then print('Failed in HttpPut without body') PrintRecursive(response) end |
36 | 36 |
37 -- Issue HttpDelete (juste make sure it is issued, we can't check the response) | 37 -- Issue HttpDelete (juste make sure it is issued, we can't check the response) |
38 HttpDelete('http://httpbin.org/delete', httpHeaders) | 38 HttpDelete('http://httpbin.org/delete', httpHeaders) |
39 | 39 |
40 -- TODO Very strange: Since Orthanc 1.6.0, a timeout frequently occurs | |
41 -- in curl at this point | |
42 | |
40 -- Issue HttpGet | 43 -- Issue HttpGet |
41 response = ParseJson(HttpGet('http://httpbin.org/get', httpHeaders)) | 44 response = ParseJson(HttpGet('http://httpbin.org/get', httpHeaders)) |
42 testSucceeded = testSucceeded and (response['headers']['Content-Type'] == 'application/json' and response['headers']['Toto'] == 'Tutu') | 45 testSucceeded = testSucceeded and (response['headers']['Content-Type'] == 'application/json' and response['headers']['Toto'] == 'Tutu') |
43 if not testSucceeded then print('Failed in HttpGet') PrintRecursive(response) end | 46 if not testSucceeded then print('Failed in HttpGet') PrintRecursive(response) end |
44 | 47 |