tutorials:htmlaccess
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:htmlaccess [2017/12/12 14:30] – James Sentman | tutorials:htmlaccess [2023/02/13 14:52] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
In spite of it’s name the “JSON” server doesn’t actually require any JSON to be a part of the connection. Our first use for it was receiving JSON requests from a specific device and the name stuck. It will happily handle normal web requests and form variables that have nothing to do with JSON at all. | In spite of it’s name the “JSON” server doesn’t actually require any JSON to be a part of the connection. Our first use for it was receiving JSON requests from a specific device and the name stuck. It will happily handle normal web requests and form variables that have nothing to do with JSON at all. | ||
- | First create an accessor | + | First create an accessor |
In the ON script use the “Insert” toolbar button to add the “JSONRequest” handler. The form of the handler in AppleScript is like this: | In the ON script use the “Insert” toolbar button to add the “JSONRequest” handler. The form of the handler in AppleScript is like this: | ||
Line 123: | Line 123: | ||
</ | </ | ||
- | The [[dictionary: | + | The [[dictionary: |
If control is requested for a unit not in that list a “403: Forbidden” error will be returned to the browser or other device. | If control is requested for a unit not in that list a “403: Forbidden” error will be returned to the browser or other device. |
tutorials/htmlaccess.1513089028.txt.gz · Last modified: 2023/02/13 14:51 (external edit)