mod_rest/README.markdown
changeset 5126 25f39ceccbca
parent 4939 a85efae90e21
child 5127 09dd378748b8
equal deleted inserted replaced
5125:dd2c45d05f73 5126:25f39ceccbca
    52 curl https://prosody.example:5281/rest \
    52 curl https://prosody.example:5281/rest \
    53     --user username \
    53     --user username \
    54     -H 'Content-Type: application/xmpp+xml' \
    54     -H 'Content-Type: application/xmpp+xml' \
    55     --data-binary '<message type="chat" to="user@example.org">
    55     --data-binary '<message type="chat" to="user@example.org">
    56             <body>Hello!</body>
    56             <body>Hello!</body>
    57         </body>'
    57         </message>'
    58 ```
    58 ```
    59 
    59 
    60 or a JSON payload:
    60 or a JSON payload:
    61 
    61 
    62 ``` {.sh}
    62 ``` {.sh}