Bird
0
0

Which of these is the correct way to write a simple GET request URL?

easy📝 Syntax Q12 of 15
Rest API - REST API Fundamentals
Which of these is the correct way to write a simple GET request URL?
APOST /api/data HTTP/1.1
BDELETE /api/data HTTP/1.1
CGET /api/data HTTP/1.1
DPUT /api/data HTTP/1.1
Step-by-Step Solution
Solution:
  1. Step 1: Identify HTTP methods

    GET is the method used to request data, so the request line must start with GET.
  2. Step 2: Check the request format

    The correct format is "GET /path HTTP/1.1" for a GET request.
  3. Final Answer:

    GET /api/data HTTP/1.1 -> Option C
  4. Quick Check:

    GET request line starts with GET [OK]
Quick Trick: GET requests start with GET keyword in HTTP line [OK]
Common Mistakes:
  • Using POST, DELETE, or PUT instead of GET
  • Wrong HTTP version or missing method
  • Confusing request line with response line

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes