ApiSkills

HTTP & Networking · 8 min

Methods, content types & uploads

GET/POST/PUT/PATCH/DELETE and how to send JSON, form data, XML, and files.

The /playground/echo endpoint accepts any method and reflects back exactly what it received — the fastest way to learn how a request is actually shaped.

# JSON body
curl -X POST https://api.ifsjaipur.cloud/playground/echo -H "content-type: application/json" -d "{\"a\":1}"

# form-urlencoded
curl -X POST https://api.ifsjaipur.cloud/playground/echo -d "a=1&b=2"

# a file upload (multipart)
curl -X POST https://api.ifsjaipur.cloud/playground/upload -F "file=@report.csv"
  • Content-Type tells the server how to parse your body — set it correctly or the body arrives as the wrong type.
  • multipart/form-data is how files are uploaded; /playground/upload reports each file's name, type, and size.

Tip · In n8n, the HTTP Request node's "Body Content Type" dropdown maps 1:1 to these — JSON, Form-Urlencoded, Form-Data (multipart), and Raw.