โ† BrowserStack questions

Parse HTTP request or response headers

Filed under BrowserStack

The question

Given raw HTTP request or response header strings, write a program to identify if it is a request or response. For responses, print the response code and content-type. For requests, print the resource requested and the Accept-Language header value if present.

No write-up yet. Related questions below have one.

Related BrowserStack questions

Collected from public candidate posts and coding forums. Updated Nov 2026.