GET Request Like Google Chrome [Python Code]

This page demonstrates how to send a GET request with a custom User-Agent header that emulates a request from Google Chrome. The Python code was automatically generated for the GET Request Like Google Chrome example.
GET Request Like Google Chrome [Python Code] Send
GET /echo HTTP/1.1
Host: reqbin.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
Upgrade-Insecure-Requests: 1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Language: en-US,en;q=0.9
Accept-Encoding: gzip, deflate

Updated: Viewed: 10865 times
Python code for GET Request Like Google Chrome example

Python code for GET Request Like Google Chrome Example

This Python code snippet was generated automatically for the GET Request Like Google Chrome example.
<< Back to the GET Request Like Google Chrome example

How to emulate requests from Google Chrome?

The User-Agent header indicates the name and version of the browser that made the request. For example, "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" indicates that the request was sent by Google Chrome version 79.

Generate code snippets for Python and other programming languages

Convert your GET Request Like Google Chrome request to the PHP, JavaScript/AJAX, Curl/Bash, Python, Java, C#/.NET code snippets using the Python code generator.