Update README.md

This commit is contained in:
Attila Magyar 2021-06-28 12:34:36 +02:00 committed by GitHub
parent 951efdb24d
commit b323e2d543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -417,6 +417,25 @@ Quotations combined with the collection API offers some high level control struc
## HTTP ## HTTP
There is basic support getting an url or posting a form.
```forth
http-get ( url -- response-body http-code )
http-get ( map url -- response-body http-code )
```
For example:
```forth
'http://some.url' http-get
#[ 'year' year
'month' month
'day' day
'cost' 1234 ]#
'http://myhost.site/expense' http-post
```
## Examples ## Examples
### Controlling a Daikin Air Conditioner ### Controlling a Daikin Air Conditioner