Skip to content
Martin Paljak edited this page Mar 7, 2023 · 23 revisions

Choose your reader

Tested (Windows 10 x64, macOS 13.2 M1, Linux amd64):

  • ACS ACR1252
  • Feitian R502

Usage

Use Zulu JDK 17+ (for Intel, also on Apple silicon, due to JavaFX OR use it headless)

java -jar nfc4pc-230307.jar

UID-s

java -jar nfc4pc-230307.jar -uid-url http://example.com/foobar

All tags that don't have a URL payload will open with the UID embedded in a pre-defined URL instead, this case at http://example.com/foobar?uid=<hex>

Meta-URL

java -jar nfc4pc-230307.jar -meta-url http://example.com/foobar

All tags (with or without URL) open at a different URL. A tag with original URL of http://example.org/sample will open as http://example.com/foobar?uid=<hex>&url=https://example.org/sample. URL is optional, tags without URL will open with just the UID parameter (so similar to --uid-url)

Webhooks

java -jar nfc4pc-230307.jar -webhook http://example.com/foobar

All tags will generate a type application/x-www-form-urlencoded POST request to http://example.com/foobar with values uid and url (optional)

Use --authorization <header> to add Authorization header to the webhook POST. Values like Bearer XXXXXXXX and Basic ZGVtbzpwQDU1dzByZA== work (full authorization header)

Headless and UI-less operation

--headless will run in headless mode, meaning that only webhooks are supported. --no-gui will not show any UI (tray icon) but will still open the browser.

Clone this wiki locally