This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:interfaces:webaw [2020/09/25 14:11] hch [Configuration upload] |
wiki:interfaces:webaw [2020/09/25 14:17] (current) hch [Authentication] |
||
---|---|---|---|
Line 44: | Line 44: | ||
LOGIN_RESULT=$(curl "$URL/application/administration/login" \ | LOGIN_RESULT=$(curl "$URL/application/administration/login" \ | ||
--data-binary '{"login":"spn","password":"spnpwd"}' \ | --data-binary '{"login":"spn","password":"spnpwd"}' \ | ||
- | --insecure -s \ | ||
) | ) | ||
Line 116: | Line 115: | ||
# Add an end-device and search for the string "201 Created" | # Add an end-device and search for the string "201 Created" | ||
- | ADD_DEVICE_RESULT=$(curl -i --insecure -s \ | + | ADD_DEVICE_RESULT=$(curl -s \ |
"$URL/application/spn/end_devices" \ | "$URL/application/spn/end_devices" \ | ||
-H "Authorization: Bearer $TOKEN" \ | -H "Authorization: Bearer $TOKEN" \ | ||
Line 153: | Line 152: | ||
# Add an end-device and search for the string "201 Created" | # Add an end-device and search for the string "201 Created" | ||
- | ADD_DEVICE_RESULT=$(curl -i --insecure -s \ | + | ADD_DEVICE_RESULT=$(curl -s \ |
"$URL/application/spn/end_devices" \ | "$URL/application/spn/end_devices" \ | ||
-H "Authorization: Bearer $TOKEN" \ | -H "Authorization: Bearer $TOKEN" \ | ||
Line 171: | Line 170: | ||
# GET RX data for all end-devices | # GET RX data for all end-devices | ||
- | curl --insecure -s \ | + | curl -s \ |
"$URL/application/spn/rx_data/file" \ | "$URL/application/spn/rx_data/file" \ | ||
-H "Authorization: Bearer $TOKEN" \ | -H "Authorization: Bearer $TOKEN" \ |