curl.exe http://domain.tld/path/
curl.exe -X GET http://www.google.com/curl.exe \
-X GET \
-H "Content-Type: application/json" \
http://127.0.0.1:8000/items/5?q=somequery
Verzoek aan de server:
GET /v1/gebruikers/1 HTTP/1.1
Host: voorbeeld.nl
Content-Type: application/json
HTTP-antwoord in JSON:
{
"id": 1,
"naam": "Jan Jansen",
"email": "jan@example.com"
}