This page demonstrates how to send a GET request with a custom User-Agent header that emulates a request from Mozilla Firefox. The C#/.NET code was automatically generated from the 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.