Questions tagged [user-agent]

A user agent is a piece of software (a software agent) that acts on behalf of a user. The term is often used to refer to browsers, and other software that sends network requests. In the HTTP protocol, a user agent identifies itself to the server using a user-agent string. The user-agent string is a string in the header of an HTTP request that identifies the browser, version, device, os, and other information about the device from which the request came.

A user agent is a piece of software (a software agent) that acts on behalf of a user. The term is often used to refer to browsers, and other software that sends network requests. In the HTTP protocol, a user agent identifies itself to the server using a user-agent string. The user-agent string is a string in the header of an HTTP request that identifies the browser, version, device, os, and other information about the device from which the request came.

The user-agent usually consists of the web browser type, the client operating system and device identifier (all with versions or builds). There is not particular standard in how to formulate an user-agent, but browser and device vendors typically standardize within their own scope.

Detection User-agent detection can be hard, especially in the mobile world. Identification of client capabilities usually cannot be done via the user-agent, but must be obtained by looking up the user-agent in a database. The defacto standard user-agent for a device is the one created by its web browser.

2389 questions
0
votes
1 answer

Custom code to set a value for User Agent (i.e. operating system)

At the end of my survey I'd like to re-direct respondents to leave a review via the App Store (if using iOS) or Play Store (if using Android) - if they agree they'd like to leave one. I added the Meta Info question at the start of the survey, which…
0
votes
0 answers

Is there a way to get a mobile-like behavior in a pop-up window in Chrome?

I'm trying to create a webpage that launches a pop-up window with a set width and height. I would like the pop-up to have the same behavior as when I inspect the page and set a mobile device, meaning I can see the cursor has changed, the user-agent…
0
votes
0 answers

Difficulty with using sec-ch-ua-platform-version request header for Windows 11 detection

I'm currently facing a problem in which I am using User Agent hints in determining the Operating System that a user is using from my app which is using Angular 11. The request header I want is 'sec-ch-ua-platform-version'. User Agent Client Hints…
0
votes
1 answer

azure pipeline Script failed with exit code: 127

I'm trying to deploy an azure pipeline in devops with a local host agent pool and I get this error output. enter image description here I also share the structure of my yaml. enter image description here Does anyone know what could be going on and…
0
votes
0 answers

How to use a UserAgent, headers and CookieContainer on WebView2?

Using a WebView2 control, I am trying to load into a webpage, but after I log into it, it seems it has some sort of block for generic browser that is not well configured because it keeps loading instead of proceed after the login, so I would like…
Mattia
  • 258
  • 7
  • 25
0
votes
0 answers

Detect screen width using Javascript and using it with PHP for user-agent

i am using Javascript to get screen size and using with PHP to rotate user-agent based on device type. test.php code :