http request headers for firefox, edge, and qtwebengine

An http request issued by firefox has the following headers.

GET / HTTP/1.1\r\n

Host: google.com\r\n

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0\r\n

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n

Accept-Language: en-US,en;q=0.5\r\n

Accept-Encoding: gzip, deflate\r\n

DNT: 1\r\n

Connection: keep-alive\r\n

Upgrade-Insecure-Requests: 1\r\n

The http request headers for Miscrosoft edge are:

GET / HTTP/1.1\r\n

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n

: en-US\r\n

Upgrade-Insecure-Requests: 1\r\n

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763\r\n

Accept-Encoding: gzip, deflate\r\n

Host: google.com\r\n

Connection: Keep-Alive\r\n

Note that most http headers for the two browsers are the same but they have different orders. Of course, the User-Agent header is different. The value of the Accept-Language header also has a slight difference.

The http headers issued by qtwebengine are:

GET / HTTP/1.1\r\n

Host: google.com\r\n

Connection: keep-alive\r\n

Upgrade-Insecure-Requests: 1\r\n

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0\r\n

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\r\n

Accept-Encoding: gzip, deflate\r\n

Note that I have already set the User-Agent to Firefox’s user agent. But the Accept header is different from firefox and the Accept-Language header is missing.

 

If you like my content, please consider buying me a coffee. Buy me a coffeeBuy me a coffee Thank you for your support!
Posted in

Leave a Reply