Facebook

Thursday, August 6, 2020

Curl examples


1. Usage: Custom headers.

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


2. Usage: Cookies.

$: curl -v --cookie "_nmid_secure=YOUR_COOKIE" \
http://hostname:8082/path/to/endpoint/