4

Can I encode an NFC tag to send HTTP POST data? Or can I only use HTTP GET?

I have Googled extensively, but can't seem to find an answer (which, I suppose, implies that it is HTTP GET only, but I would like someone to say so).


[Update - 6 years later] This project was abandoned, but it was basically advertising, embedding NFC tokens in posters.

As such, it should work on any Android, out of the box, with no helper apps being necessary (my bad; maybe I ought to have made that clearer).

The extra step to install an app would drastically lower the number of people who scanned the tag.

3 Answers3

1

No, you can only encode a URL on the tag. The tag neither contains an instruction to issue a HTTP GET request nor a HTTP POST request.

How the URL is interpreted and processed depends on the app that opens the URL. Typically that app will be a web browser and that web browser will typically treat the URL as if it was typed into the address bar. Consequently, the web browsers usually opens the URL by issuing a GET request.

Michael Roland
  • 348
  • 4
  • 12
1

Yes, NFC Tools PRO has a Post option https://play.google.com/store/apps/details?id=com.wakdev.nfctools.pro&hl=en

Masster
  • 21
  • 1
0

The Tasker application can be set to send any http request to any address when it gets in contact with a NFC tag that it recognizes.

G. Annell
  • 9
  • 1
  • Not really an answer, as it would require all users of my tags to install Tasker (and maybe pay for it?). This project was abandoned, but it was basically advertising, embedding NFC tokens in posters. The extra step to install Tasker would have drastically lowered the number of people who scanned the tag. I will update the question to make this clear. – Mawg says reinstate Monica Oct 07 '21 at 06:31