From fcde3559fcb20934f3e1d58128c2d6cd9f6b56a3 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Mar 2018 18:47:27 +0100 Subject: [PATCH 1/5] Defaults to HTTP/1.1 for cURL --- alexa_remote_control.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index 95e70c0..ab18d3a 100644 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -26,6 +26,7 @@ # 2018-02-27: v0.8e added "lastalexa" option for HA-Bridge to send its command to a specific device # (Markus Wennesheimer: https://wennez.wordpress.com/light-on-with-alexa-for-each-room/) # 2018-02-27: v0.9 unsuccessful logins will now give a short info how to debug the login +# 2018-03-09: v0.9a workaround for login problem, force curl to use http1.1 # ### # @@ -54,7 +55,7 @@ CURL='/usr/bin/curl' # cURL options # -k : if your cURL cannot verify CA certificates, you'll have to trust any # --compressed : if your cURL was compiled with libz you may use compression -OPTS='--compressed' +OPTS='--compressed --http1.1' #OPTS='-k --compressed' # browser identity From 184181b83f2e147bfe8dd60d9fba54d16f14bd6c Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Mar 2018 18:48:10 +0100 Subject: [PATCH 2/5] Defaults to HTTP/1.1 for cURL --- alexa_remote_control_plain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alexa_remote_control_plain.sh b/alexa_remote_control_plain.sh index 3d0c58d..cb75ac7 100644 --- a/alexa_remote_control_plain.sh +++ b/alexa_remote_control_plain.sh @@ -31,7 +31,7 @@ CURL='/usr/bin/curl' # cURL options # -k : if your cURL cannot verify CA certificates, you'll have to trust any # --compressed : if your cURL was compiled with libz you may use compression -OPTS='--compressed' +OPTS='--compressed --http1.1' #OPTS='-k --compressed' # browser identity From ab4970fb48f7eb54a427be57de5703c61d7bc8b3 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Mar 2018 18:49:40 +0100 Subject: [PATCH 3/5] Defaults to HTTP/1.1 for cURL --- alexa_remote_control_plain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alexa_remote_control_plain.sh b/alexa_remote_control_plain.sh index cb75ac7..129f419 100644 --- a/alexa_remote_control_plain.sh +++ b/alexa_remote_control_plain.sh @@ -3,7 +3,7 @@ # Amazon Alexa Remote Control (PLAIN shell) # alex(at)loetzimmer.de # -# 2018-02-27: v0.9 (for updates see http://blog.loetzimmer.de/2017/10/amazon-alexa-hort-auf-die-shell-echo.html) +# 2018-03-09: v0.9a (for updates see http://blog.loetzimmer.de/2017/10/amazon-alexa-hort-auf-die-shell-echo.html) # ### # From c6492bfaa8662c1ae7cbf2b56024b54408bd3b9e Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Mar 2018 18:52:51 +0100 Subject: [PATCH 4/5] Defaults to HTTP/1.1 for cURL --- alexa_remote_control.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index ab18d3a..3903ab1 100644 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -55,8 +55,9 @@ CURL='/usr/bin/curl' # cURL options # -k : if your cURL cannot verify CA certificates, you'll have to trust any # --compressed : if your cURL was compiled with libz you may use compression +# --http1.1 : cURL defaults to HTTP/2 on HTTPS connections if available OPTS='--compressed --http1.1' -#OPTS='-k --compressed' +#OPTS='-k --compressed --http1.1' # browser identity BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0' From 18ddb0d8827e3f253d12a52979ec14457722e06e Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Mar 2018 18:53:33 +0100 Subject: [PATCH 5/5] Defaults to HTTP/1.1 for cURL --- alexa_remote_control_plain.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alexa_remote_control_plain.sh b/alexa_remote_control_plain.sh index 129f419..36ec2ab 100644 --- a/alexa_remote_control_plain.sh +++ b/alexa_remote_control_plain.sh @@ -31,8 +31,9 @@ CURL='/usr/bin/curl' # cURL options # -k : if your cURL cannot verify CA certificates, you'll have to trust any # --compressed : if your cURL was compiled with libz you may use compression +# --http1.1 : cURL defaults to HTTP/2 on HTTPS connections if available OPTS='--compressed --http1.1' -#OPTS='-k --compressed' +#OPTS='-k --compressed --http1.1' # browser identity BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'