This page demonstrates how to send a GET request with a custom User-Agent header that emulates a request from Google Chrome. The PHP code was automatically generated for the GET Request Like Google Chrome example.
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 PHP and other programming languages