QR 码扫描不正确,但测试显示它包含正确的 URL
QR code is scanning incorrectly, yet testing shows it contains correct URL
我有一个 QR 码,其中编码了以下 url:
https://www.songbookdb.com/books/SHAYLA
然而扫描二维码阅读器会出现
https://www.songbookdb.com?b=GFPTX
我查看了 https://zxing.org/w/decode.jspx 处的二维码图像,它告诉我嵌入的 URL 是
https://www.songbookdb.com/books/SHAYLA
我想弄清楚为什么我会在
https://www.songbookdb.com?b=GFPTX
...我想也许我在服务器端做了一些古怪的事情,但我很确定 URL 击中服务器是
https://www.songbookdb.com?b=GFPTX
你们扫描了什么?
感谢观看。
I have a QR code that has the following url encoded into it:
你是如何用 zxing.org 检查的? I get this:
Raw text www.songbookdb.com?b=GFPTX
Raw bytes 41 a7 77 77 72 e7 36 f6 e6 76 26 f6 f6 b6 46 22 e6 36 f6 d3 f6 23 d4 74 65 05 45 80 ec 11 ec 11 ec 11
Barcode format QR_CODE
Parsed Result Type URI
Parsed Result http://www.songbookdb.com?b=GFPTX
这个二维码是怎么生成的?您的生成器似乎已经遵循了您从服务器获得的 301 重定向:
[beni@localhost:~]$ curl -LI 'https://www.songbookdb.com/books/GFPTX'
HTTP/1.1 301 Moved Permanently
Date: Thu, 31 Dec 2015 08:45:23 GMT
Server: Apache
Location: https://www.songbookdb.com/books/GFPTX/
Connection: close
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 301 Moved Permanently
Date: Thu, 31 Dec 2015 08:45:23 GMT
Server: Apache
X-Powered-By: PHP/5.5.19
Location: https://www.songbookdb.com/?book=GFPTX
Cache-Control: public, no-transform
Connection: close
Content-Type: text/html; charset=utf-8
https://www.songbookdb.com/books/GFPTX/ redirects to https://www.songbookdb.com/?book=GFPTX.
我有一个 QR 码,其中编码了以下 url:
https://www.songbookdb.com/books/SHAYLA
然而扫描二维码阅读器会出现
https://www.songbookdb.com?b=GFPTX
我查看了 https://zxing.org/w/decode.jspx 处的二维码图像,它告诉我嵌入的 URL 是
https://www.songbookdb.com/books/SHAYLA
我想弄清楚为什么我会在
https://www.songbookdb.com?b=GFPTX
...我想也许我在服务器端做了一些古怪的事情,但我很确定 URL 击中服务器是
https://www.songbookdb.com?b=GFPTX
你们扫描了什么?
感谢观看。
I have a QR code that has the following url encoded into it:
你是如何用 zxing.org 检查的? I get this:
Raw text www.songbookdb.com?b=GFPTX
Raw bytes 41 a7 77 77 72 e7 36 f6 e6 76 26 f6 f6 b6 46 22 e6 36 f6 d3 f6 23 d4 74 65 05 45 80 ec 11 ec 11 ec 11
Barcode format QR_CODE
Parsed Result Type URI
Parsed Result http://www.songbookdb.com?b=GFPTX
这个二维码是怎么生成的?您的生成器似乎已经遵循了您从服务器获得的 301 重定向:
[beni@localhost:~]$ curl -LI 'https://www.songbookdb.com/books/GFPTX'
HTTP/1.1 301 Moved Permanently
Date: Thu, 31 Dec 2015 08:45:23 GMT
Server: Apache
Location: https://www.songbookdb.com/books/GFPTX/
Connection: close
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 301 Moved Permanently
Date: Thu, 31 Dec 2015 08:45:23 GMT
Server: Apache
X-Powered-By: PHP/5.5.19
Location: https://www.songbookdb.com/?book=GFPTX
Cache-Control: public, no-transform
Connection: close
Content-Type: text/html; charset=utf-8
https://www.songbookdb.com/books/GFPTX/ redirects to https://www.songbookdb.com/?book=GFPTX.