This seems to be the best option. Summarized:
[code]curl -IXGET http://example.org/%5B/code%5D
Source: https://stackoverflow.com/a/49669324/429091