ajax QRcode value to netcat minimal server

This commit is contained in:
fred 2022-04-13 19:46:29 +02:00
parent e0e6e44f07
commit 38396c89ef
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,7 @@
<h1>JQuery HTML5 QR Code Scanner using Instascan JS Example - ItSolutionStuff.com</h1>
<h2>Receiver : echo -e 'HTTP/1.1 200 OK\r\n' | nc -l -p 1234 -q 1 | grep '^GET' | cut -d' ' -f2</h2>
<video id="preview"></video>
@ -28,6 +29,12 @@
scanner.addListener('scan', function (content) {
$.ajax({
url: "http://127.0.0.1:1234",
data: "qrcode="+content,
type: 'GET'
});
alert(content);
});