Facebook

Thursday, August 6, 2020

Curl examples


1. Usage: Custom headers.
Expand
$: curl -v --cookie "_nmid_secure=YOUR_COOKIE" \
-H "n-user-forwarded={\"customerId\":\"\"}" \
http://hostname:8082/path/to/endpoint


2. Usage: Cookies.
Expand
$: curl -v --cookie "_nmid_secure=YOUR_COOKIE" \
http://hostname:8082/path/to/endpoint/