Carlos on Nostr: The NIP has an example command with curl: curl -H "Accept: application/nostr+json" ...
The NIP has an example command with curl:
curl -H "Accept: application/nostr+json"
https://eden.nostr.landIf the client says it accepts content of type `application/nostr+json`, seems reasonable to expect the relay should respond with exactly that content type header.
Published at
2023-06-28 21:24:10Event JSON
{
"id": "0000cc2f6d510ef231b1af13d39e8202fb31b7331ae0daf45e17f195cc7e5168",
"pubkey": "123456785ee7815751c28004e6cef4398e1256f94a93bf51f90018e28accbfb4",
"created_at": 1687987450,
"kind": 1,
"tags": [
[
"p",
"6140478c9ae12f1d0b540e7c57806649327a91b040b07f7ba3dedc357cab0da5"
],
[
"e",
"5ebee3fe2f884313aa08d047ee63196fbb4e7f98bf1758db9f5ab69bb14301eb",
"wss://relay.damus.io/",
"root"
],
[
"nonce",
"9223372036854790891",
"16"
]
],
"content": "The NIP has an example command with curl:\n\ncurl -H \"Accept: application/nostr+json\" https://eden.nostr.land\n\nIf the client says it accepts content of type `application/nostr+json`, seems reasonable to expect the relay should respond with exactly that content type header.",
"sig": "05f43ae9c56ec783d0c77b5c03c1432d3908e915f95a58de8484462627a6430bf66bc9096ddf0d4e6f1408aa7f63036a63651659fb78d3601f2268ffa66af58a"
}