200-901 · Question #118
200-901 Question #118: Real Exam Question with Answer & Explanation
The correct answer is A: GET. Retrieving a JSON resource via cURL with OAuth requires the GET method, the Accept header to specify the response format, and the Authorization header to carry the Bearer token.
Question
FILL BLANK Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OAuth. curl -X ____________ -H " __________: application/json" \ -H " _______: Bearer AbCdEf123456" https://localhost/api/myresource Answer: See explanation below
Options
- AGET
- BAccept
- CAuthorization
Explanation
Retrieving a JSON resource via cURL with OAuth requires the GET method, the Accept header to specify the response format, and the Authorization header to carry the Bearer token.
Concept tested. RESTful API cURL syntax with OAuth Bearer token
Reference. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization
Topics
Community Discussion
No community discussion yet for this question.