On Sat, 2017-08-12 at 21:22 -0700,
arch....@gmail.com wrote:
> i try'd with shell command:
> $ curl --verbose -X POST
http://localhost:8042/modalities/LOCAL/echo
> -d "{}"
> * About to connect() to localhost port 8042 (#0)
> * Trying 127.0.0.1...
> * Connected to localhost (127.0.0.1) port 8042 (#0)
> >
> > POST /modalities/LOCAL/echo HTTP/1.1
> > User-Agent: curl/7.29.0
> > Host: localhost:8042
> > Accept: */*
> > Content-Length: 2
> > Content-Type: application/x-www-form-urlencoded
> >
> * upload completely sent off: 2 out of 2 bytes
>
> and it stucks here.
> thats why my request from php not working.
> i dont know why. i have 2 Orthanc servers with the same thing.
> All other requests is working well.
Hmm definitely check the Orthanc logs, maybe start it in verbose or
trace mode if you don't see much.
I attach a session where I show the feature working. If you have a
Docker engine lying around you may try to reproduce it exactly[1].
(Note that you didn't need to send '{}' in the body of the HTTP
request, but I tried it anyway and Orthanc just ignores the body and it
thus works fine also.)
If the problem persists between two local instances it can get pretty
interesting. If not, then you'll want to check any and all gateways
between the devices, see if one doesn't block that request for whatever
reason (a tool like Wireshark should give you all the information you
need).
[1]
https://bitbucket.org/osimis/orthanc-setup-samples/src/d1e0017863db
d520b63092ad5da05bad05e4c15d/docker/dicom-association/?at=master