HTTP Headers

Format ved mottak av header

linje 1\r\n
linje 2\r\n
\n

Format ved sending av header

linje 1\r\n
linje 2\r\n
\n
html
\n

Eksempel mottak:

GET /getSensorData2 HTTP/1.1
Host: 192.168.10.15
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: nb-NO,nb;q=0.9,no-NO;q=0.8,no;q=0.6,nn-NO;q=0.5,nn;q=0.4,en-US;q=0.3,en;q=0.1
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1
DNT: 1
Sec-GPC: 1