07-22-2014, 11:26 AM
Additional 'curl' tests gives more confusion:
Note: entering the same call on FX asks for the authentication and gives the 'config' result.
curl -v http://admin:admin@192.168.178.16:5001/send?{..} gives
Any help?
From the 'config' output I have:
"version":[ "5.0", "5.0", "v5.0" ]
Is the /send? only supported with the "dev" version of pilight?
If yes, please give the correct download address.
Guenter
Code:
~$ curl -v http://admin:admin@192.168.178.16:5001/config
* About to connect() to 192.168.178.16 port 5001 (#0)
* Trying 192.168.178.16... connected
* Server auth using Basic with user 'admin'
> GET /config HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406023776"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0
Note: entering the same call on FX asks for the authentication and gives the 'config' result.
curl -v http://admin:admin@192.168.178.16:5001/send?{..} gives
Code:
~$ curl -v http://admin:admin@192.168.178.16:5001/send?{"message":"send","code":{"location":"Aussen","device":"Haustuer","state":"on"}}
* About to connect() to 192.168.178.16 port 5001 (#0)
* Trying 192.168.178.16... connected
* Server auth using Basic with user 'admin'
> GET /send?message:send HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406024442"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0
* About to connect() to 192.168.178.16 port 5001 (#0)
* Trying 192.168.178.16... connected
> GET /send?code:location:Aussen HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
* Authentication problem. Ignoring this.
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406024442"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0
* About to connect() to 192.168.178.16 port 5001 (#0)
* Trying 192.168.178.16... connected
> GET /send?code:device:Haustuer HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
* Ignoring duplicate digest auth header.
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406024442"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0
* About to connect() to 192.168.178.16 port 5001 (#0)
* Trying 192.168.178.16... connected
> GET /send?code:state:on HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 192.168.178.16:5001
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
* Authentication problem. Ignoring this.
< WWW-Authenticate: Digest qop="auth", realm="pilight", nonce="1406024442"
* no chunk, no close, no size. Assume close to signal end
<
* Closing connection #0
Any help?
From the 'config' output I have:
"version":[ "5.0", "5.0", "v5.0" ]
Is the /send? only supported with the "dev" version of pilight?
If yes, please give the correct download address.
Guenter