init
This commit is contained in:
40
nv/html/nv-nopdf/wado_proxy.php
Normal file
40
nv/html/nv-nopdf/wado_proxy.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
// http://192.168.2.5:8080/wado?requestType=WADO&studyUID='+data.study.study_iuid+'&seriesUID='+series.series_iuid+'&objectUID='+sop_iuid;
|
||||
|
||||
include_once("config.php");
|
||||
|
||||
$studyUID = $_GET["studyUID"];
|
||||
$seriesUID = $_GET["seriesUID"];
|
||||
$objectUID = $_GET["objectUID"];
|
||||
|
||||
// $url = "http://192.168.2.5:8080/wado?requestType=WADO&studyUID=${studyUID}&seriesUID=${seriesUID}&objectUID=${objectUID}&contentType=application%2Fdicom&transferSyntax=1.2.840.10008.1.2.1";
|
||||
// $url = XOCP_PACS_WADO_URI."?requestType=WADO&studyUID=${studyUID}&seriesUID=${seriesUID}&objectUID=${objectUID}&contentType=application%2Fdicom&transferSyntax=1.2.840.10008.1.2.1";
|
||||
$url = XOCP_PACS_WADO_URI."?requestType=WADO&studyUID=${studyUID}&seriesUID=${seriesUID}&objectUID=${objectUID}&contentType=application%2Fdicom";
|
||||
|
||||
_debuglog($url,TRUE);
|
||||
|
||||
//echo $url;
|
||||
//exit;
|
||||
|
||||
header("Content-type: application/dicom");
|
||||
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
$verbose = fopen('/tmp/curl', 'w+');
|
||||
|
||||
// echo $verbose;
|
||||
|
||||
curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
|
||||
curl_setopt($ch, CURLOPT_STDERR, $verbose);
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13");
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
|
||||
$result = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
// die($result);
|
||||
|
||||
echo($result);
|
||||
|
||||
Reference in New Issue
Block a user