Hi, Yes, you are correct it seems Postman app is adding a header though it is not showing in UI. Yesterday it worked and today it is again behaving strangely.
Now I tried with another restful client app and it is working fine. Thanks for info. Regards, Umesh From: Nick Couchman <vn...@apache.org> Sent: Tuesday, October 22, 2019 6:51 AM To: user@guacamole.apache.org Subject: Re: Restful API for guacamole On Mon, Oct 21, 2019 at 12:52 AM Umesh Bhatt <um...@nuvepro.com<mailto:um...@nuvepro.com>> wrote: Hi, Any inputs on this? Regards, Umesh From: Umesh Bhatt Sent: Thursday, October 17, 2019 9:23 AM To: user@guacamole.apache.org<mailto:user@guacamole.apache.org> Subject: RE: Restful API for guacamole Hi, I am making call from Postman REST client app. I was able to try this in the Postman app and can do it without any error. I suspect that, when you make your GET call to the activeConnection URL, you may still have the login parameters specified in the body of the Postman request. In fact, when I try this in Postman - leaving the form parameters and leaving the encoding as "applicatino/x-www-form-urlencoded" in the GET request - I can reproduce the error behavior you're seeing. When I am able to successfully make this work, I use one tab in Postman for the login, and a separate (new) one for the active connection request. Here is the Postman code for the login request: POST /guacamole/api/tokens HTTP/1.1 Host: 192.168.1.1 Content-Type: application/x-www-form-urlencoded User-Agent: PostmanRuntime/7.18.0 Accept: */* Cache-Control: no-cache Postman-Token: [redacted] Host: 192.168.1.1 Accept-Encoding: gzip, deflate Content-Length: 37 Connection: keep-alive cache-control: no-cache username=chips&password=avacado And here is the Postman code for the active connection request: GET /guacamole/api/session/data/postgresql/activeConnections?token=[redacted] HTTP/1.1 Host: 192.168.1.1 User-Agent: PostmanRuntime/7.18.0 Accept: */* Cache-Control: no-cache Postman-Token: [redacted] Host: 192.168.1.1 Accept-Encoding: gzip, deflate Connection: keep-alive cache-control: no-cache -Nick