[ANSWERED]: RESTful question

Posted on
Tue Dec 09, 2014 12:24 pm
vasisht offline
Posts: 24
Joined: Dec 08, 2012

[ANSWERED]: RESTful question

I'm in the process of building a raspberry pi device and I'd like for it to get access to and update a variable (and I'm happy to do this via http/curl as on this site: http://wiki.indigodomo.com/doku.php?id=indigo_s_restful_urls

However, when I execute

Code: Select all
 $ curl http://localhost:8176/devices.txt


I get

Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
      <title>Indigo Home Control Server</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <link rel="stylesheet" media="screen" type="text/css" href="/css/global4.css" />
      <link rel="stylesheet" media="screen" type="text/css" href="/css/indigo4.css" />
   </head>
   <body>
      <center>
   access denied
      </center>
   </body>
</html>


I do have Indigo secured with a username & password. Is this what's throwing it off?

Posted on
Wed Dec 10, 2014 10:07 am
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: RESTful question

Correct, looks like you are on the right path on your other forum thread.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest