Mercurial > hg > orthanc-stone
comparison Framework/Loaders/DicomSource.cpp @ 1484:121d01aa328e
SeriesThumbnailsLoader working on raw dicom files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 22 Jun 2020 17:46:40 +0200 |
parents | 474360793956 |
children |
comparison
equal
deleted
inserted
replaced
1483:6abd819aa534 | 1484:121d01aa328e |
---|---|
188 for (std::map<std::string, std::string>::const_iterator | 188 for (std::map<std::string, std::string>::const_iterator |
189 it = headers.begin(); it != headers.end(); ++it) | 189 it = headers.begin(); it != headers.end(); ++it) |
190 { | 190 { |
191 h[it->first] = it->second; | 191 h[it->first] = it->second; |
192 } | 192 } |
193 | 193 |
194 Json::Value body = Json::objectValue; | 194 Json::Value body = Json::objectValue; |
195 body["Uri"] = uri; | 195 body["Uri"] = uri; |
196 body["Arguments"] = args; | 196 body["Arguments"] = args; |
197 body["Headers"] = h; | 197 body["HttpHeaders"] = h; |
198 | 198 |
199 std::unique_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); | 199 std::unique_ptr<OrthancRestApiCommand> command(new OrthancRestApiCommand); |
200 command->SetMethod(Orthanc::HttpMethod_Post); | 200 command->SetMethod(Orthanc::HttpMethod_Post); |
201 command->SetUri(orthancDicomWebRoot_ + "/servers/" + serverName_ + "/get"); | 201 command->SetUri(orthancDicomWebRoot_ + "/servers/" + serverName_ + "/get"); |
202 command->SetBody(body); | 202 command->SetBody(body); |