Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Troubleshooting POST Request

Featured Replies

Posted

Hello;

 

I have a device on my network that responds to REST requests.

 

Using the Advanced Rest Client Chrome Extention I'm able to get things working properly.

 

Using the ISY's interface, I can not get it to work.

 

 

In Chrome:

https://IP_Address

/config.php

 

Authorization: Basic randomeLETTERSandNUMBERS

Body: setsysload=9

 

Request headers 
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
Authorization: Basic randomeLETTERSandNUMBERS
Content-Type: application/x-www-form-urlencoded 
Accept: */*
DNT: 1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Cookie: PHPSESSID=o5tpeu6nsq6nfkqs3bl78ju854

headers 
Expires: Thu, 19 Nov 1981 08:52:00 GMT 
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 
Pragma: no-cache 
Content-type: text/html
Transfer-Encoding: chunked 
Date: Wed, 04 Jun 2014 21:45:46 GMT 
Server: lighttpd/1.4.34 

 

 

 

Doing it in ISY I just get a request failed.

 

Now, if I change it to HTTP in isy I get a resource moved; which is correct as you get a permanent redirect to the HTTPS address.

 

Any idea on how to troubleshoot further?

Was the certificate on your lighttpd HTTPS server issued by a well known (paid) CA like Thawte or Verisign? If not, your probably running into a certificate trust issue.

 

You can relax the SSL client settings in ISY Dashboard, but it would be better to have a SSL cert on your Lighttpd server that's trusted by ISY. Either that, or exempt your ISY from the SSL redirect....

  • Author

I'll have to look into this a bit more then. When I hit manage certificates on ISY it just brings me to PDF that I'll have to read later.

 

As for certificats I use CAcert.org for mine. But this particular piece of equipment does not have a very good interface.

Make sure you are using the Dashboard (correct version for your running code version) to manage certificates - not the admin console or the http interface.

I'm not sure that I fully understand the exchange in the OP but it looks like there may be a session cookie involved which I believe is not supported by the ISY.

 

-Xathros

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.