From 38396c89efb2d0620ead2ca6a0f1242b87231529 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 13 Apr 2022 19:46:29 +0200 Subject: [PATCH] ajax QRcode value to netcat minimal server --- templates/instascan.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/instascan.html b/templates/instascan.html index 9d09495..b493fe2 100644 --- a/templates/instascan.html +++ b/templates/instascan.html @@ -18,6 +18,7 @@

JQuery HTML5 QR Code Scanner using Instascan JS Example - ItSolutionStuff.com

+

Receiver : echo -e 'HTTP/1.1 200 OK\r\n' | nc -l -p 1234 -q 1 | grep '^GET' | cut -d' ' -f2

@@ -28,6 +29,12 @@ scanner.addListener('scan', function (content) { + $.ajax({ + url: "http://127.0.0.1:1234", + data: "qrcode="+content, + type: 'GET' + }); + alert(content); });