stevegw (39) [Avatar] Offline
#1
Although the url's for http://devices.webofthings.io/pi/actuators/display works fine with chrome 64


Using postman and POST it works (That is the message sent will appear). but returns this

<html>
<head>
<title>405 Method Not Allowed</title>
</head>
<body>
<h1>405 Method Not Allowed</h1>

  • Code: MethodNotAllowed

  • Message: The specified method is not allowed against this resource.

  • Method: POST

  • ResourceType: OBJECT

  • RequestId: 2FAA5367699D2D31

  • HostId: 8fp3TjDMxghzK6NrUJIxo+wNct3id5MZQV3dAup+MB7PSsCifhvITLdiW1xd3J8VnIEaZAETbqo=




</body>
</html>

and using IE64 you get

Do you want to open save content (57 bytes) from devices.webofthings.io?

and if you try to save it says content (1) couldn't be downloaded

Is this expected ?
domguinard (69) [Avatar] Offline
#2
Hi there,

First: sorry for the slow reply!

Then: the resource you want to update is http://devices.webofthings.io/pi/actuators/display/content
as /display is an aggregate of several resources.

So you can use Postman to POST to: http://devices.webofthings.io/pi/actuators/display/content) with a JSON payload such as: {"value": "Hello World!"}
This is basically what we do in Listing 2.6 but directly in Javascript.

Having said that your question makes it clear that it wasn't clear enough smilie So we modified the text to mention exactly what to do.

As for the IE behavior we could not reproduce it, we tried with IE8 and it did work. Which version of IE do you use? If I understand well the problem appears when browsing the: http://devices.webofthings.io/pi/actuators/display page right?

Thanks a lot!