GET Request Like Mozilla Firefox [Python Code]

This page demonstrates how to send a GET request with a custom User-Agent header that emulates a request from Mozilla Firefox. The Python code was automatically generated for the GET Request Like Mozilla Firefox example.
GET Request Like Mozilla Firefox [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; rv:71.0) Gecko/20100101 Firefox/71.0
Upgrade-Insecure-Requests: 1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate

Updated: Viewed: 8760 times
Python code for GET Request Like Mozilla Firefox example

Python code for GET Request Like Mozilla Firefox Example

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

How do I send a GET request like Mozilla Firefox?

Servers determine the browser name and version using the User-Agent header. In order to send a GET or POST request like Mozilla Firefox, you need to provide an appropriate User-Agent header. For example, the header "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0" indicates that the request is from Mozilla Firefox version 71.

Generate code snippets for Python and other programming languages

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