Skip to main content
2 of 2
added 13 characters in body
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91

Since the latter uses hal_json, you need to do it like this

curl --request GET --user myusername:mypassword --header 'Accept: application/hal+json' \
http://example.com/node/2?_format=hal_json

For more info, see Using other authentication protocols.

No Sssweat
  • 31.6k
  • 14
  • 55
  • 91