Type : GENERATION_INTERNE_ET_EXTERNE
The body of the POST request is defined internally within the script. The response (JSON data) is received from an external web service (`httpbin.org`).
| 1 | filename resp temp; |
| 2 | PROC HTTP |
| 3 | url="http://httpbin.org/post" |
| 4 | method="POST" |
| 5 | in="custname=Joe%str(&)size=large%str(&)topping=cheese" |
| 6 | out=resp; |
| 7 | RUN; |
| 1 | DATA _null_; |
| 2 | rc = jsonpp('resp','log'); |
| 3 | RUN; |