Http/1.1 Requests
Requests to Valdit APIs must fully comply with the HTTP/1.1 standard1 . Most notably, the request must include a Host header as this is mandatory in HTTP/1.1. Whenever parameters are used in the URL they must be URL encoded.
If included, the body of a message must contain valid JSON data and a valid Content-Type header must be included. While the examples in this document are formatted for readability, it is acceptable to send JSON without whitespace:
GET https://developer.valdit.com/api/v1/addresses/nl/8758LD/1 HTTP/1.1
cache-control: no-cache
Accept: application/json, text/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGci…
-
See https://tools.ietf.org/html/rfc2616 for the official documentation on HTTP/1.1 ↩︎