June 23, 2018

Django Http Request Meta

A standard Python dictionary containing all available HTTP headers. Available headers depend on the client and server, but here are some examples: request.META.get('HTTP_USER_AGENT') CONTENT_LENGTH – The length of the request body (as a string). CONTENT_TYPE – The MIME type of the request body. HTTP_ACCEPT – Acceptable content types for the response. HTTP_ACCEPT_ENCODING – Acceptable encodings for the response. HTTP_ACCEPT_LANGUAGE – Acceptable languages for the response. HTTP_HOST – The HTTP Host header sent by the client. Read more

© Vijay Ronan 2020