Get Response Headers From POST Request
curl -sSL -D - 'https://domain.com' \
-H 'Accept: application/json' \
-H 'content-type: application/json' \
-d '{}' -o /dev/nullFor Example:
curl -sSL -D - 'https://yaoyingying.com/wp-json/wp/v2/posts' \
-H 'Accept: application/json' \
-H 'content-type: application/json' \
-d '{}' -o /dev/null
HTTP/2 401
x-powered-by: Ionic Mobile App Builder
x-robots-tag: noindex
link: <https://yaoyingying.com/wp-json/>; rel="https://api.w.org/"
x-content-type-options: nosniff
access-control-expose-headers: X-WP-Total, X-WP-TotalPages, Link
access-control-allow-headers: Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type
allow: GET
vary: Accept-Encoding
referrer-policy: no-referrer-when-downgrade
content-type: application/json; charset=UTF-8
date: Fri, 31 May 2024 09:49:24 GMT
server: Apache