№ 12000 В разделе
Programming
от May 27th, 2023,
В подшивках: Go
Мой собственный генератор QR кодов, создавался для моих сайтов и сервисов. Отлично работает в облаках и прочих средах. Написан на Golang.
Репозиторий с кодом и полными инструкциями https://git.blindage.org/21h/qr-generator-service
Сервис умеет в ограничение списка доменов и принимает GET и POST запросы по урлу /qr:
$ curl -vs -X POST -d '{"URL":"http://blindage.org/"}' http://localhost:8080/qr -o qr.png * Trying 127.0.0.1:8080... * Connected to localhost (127.0.0.1) port 8080 (#0) > POST /qr HTTP/1.1 > Host: localhost:8080 > User-Agent: curl/7.81.0 > Accept: */* > Content-Length: 30 > Content-Type: application/x-www-form-urlencoded > } [30 bytes data] * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Content-Type: image/png < Date: Fri, 26 May 2023 21:25:17 GMT < Content-Length: 430 < { [430 bytes data] * Connection #0 to host localhost left intact
Fortune cookie: Today's spam: Hey baby, If you're still having difficulty purchasing gorgeous items, take a peek at this site. Get ready to have some fun, Mireio
Leave a Reply