REST API
Posted: 30 Aug 2025 17:26
The GPIO client on my Windows Server runs on port 9001.
When I execute this command in curl I see:
PS C:\Users\Admin> curl.exe -X POST http://localhost:9001/commands `
>> -H "Content-Type: application/json" `
>> -d "[`"SHOW_ALERT_WINDOW TEST`"]" `
>> -u ProppFrexx:ProppFrexx -v
>>
Note: Unnecessary use of -X or --request, POST is already inferred.
* Host localhost:9001 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:9001...
* Connected to localhost (::1) port 9001
* using HTTP/1.x
* Server auth using Basic with user 'ProppFrexx'
> POST /commands HTTP/1.1
> Host: localhost:9001
> Authorization: Basic UHJvcHBGcmV4eDpQcm9wcEZyZXh4
> User-Agent: curl/8.13.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 24
>
* upload completely sent off: 24 bytes
However, no message shows up in ProppFrexx (it is enabled in settings and options -> More Stuff).
Could it be that I did something wrong? Any suggestions on how I can troubleshoot or fix this problem would be greatly appreciated. Thanks in advance.
When I execute this command in curl I see:
PS C:\Users\Admin> curl.exe -X POST http://localhost:9001/commands `
>> -H "Content-Type: application/json" `
>> -d "[`"SHOW_ALERT_WINDOW TEST`"]" `
>> -u ProppFrexx:ProppFrexx -v
>>
Note: Unnecessary use of -X or --request, POST is already inferred.
* Host localhost:9001 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:9001...
* Connected to localhost (::1) port 9001
* using HTTP/1.x
* Server auth using Basic with user 'ProppFrexx'
> POST /commands HTTP/1.1
> Host: localhost:9001
> Authorization: Basic UHJvcHBGcmV4eDpQcm9wcEZyZXh4
> User-Agent: curl/8.13.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 24
>
* upload completely sent off: 24 bytes
However, no message shows up in ProppFrexx (it is enabled in settings and options -> More Stuff).
Could it be that I did something wrong? Any suggestions on how I can troubleshoot or fix this problem would be greatly appreciated. Thanks in advance.