3 Replies Latest reply on Feb 28, 2014 3:36 AM by pommo

    How to query the SWIS JSON interface using curl?


      I thought I'd try curl before implementing it in the client, but all queries end in

      curl: (7) Failed connect to; Connection timed out


      I've read the "SWIS REST/JSON API" thread, but can't figure out, why it doesn't work.


      This is what I tried on a laptop in the server network:

      curl --user myuser:mypass


      I can connect in and run the query from SWQL Studio (same user, pass) just fine. Does the user have to have a special permission or is there a special setting to enable the query-interface, maybe?



      If I try to connect to in a Browser, I get "The connection has timed out, The server at is taking too long to respond.", but both SWIS and SWIS V3 Services are running.



      It was a firewall issue, had to create an exception for port 17778 in the Windows Firewall on the server (see Open a port in Windows Firewall - Microsoft Windows Help ) or just disable it.