This will be important later when we use JavaScript to create requests for the Digital.ai Agility REST API. The content/type header is the most relevant here, and you'll notice that text/html corresponds to one of the values the initiating HTTP request contained its accept header. Now, scroll the pane down to see the response headers section My browser sends the cookie back to Google on subsequent requests so that Google can correlate separate requests with me. The accept header tells the server what kind of formats the browser wants to get the response in, and the cookie is actually a unique value that identifies me that my browser previously got from Google. The most relevant ones, practically speaking, are the accept header and the cookie one. Your browser sends HTTP headers as part of the HTTP request to give the server additional information it needs to know in order to process the request.
HTTP request headers will come into play when we start to study how to send data to the Digital.ai Agility, formerly VersionOne, REST API because we'll need to specify a few "custom headers." HTTP headers provide more information to help the server respond properly Let's highlight just the major headers for now. Notice the request method and request headers sectionĪs you can see, the request method is GET, and below that is a big bag of request headers. You can study the guts of the HTTP request used to GET the home page.
Assuming you are using Google Chrome, do this: HTTP is no secret at all and it's super easy to spy on your browserĭoes it ever seem like cryptic magic what your browser and remote servers do together? Lest you think that HTTP requests and responses are like some secretive handshake that only browser makers and website operators know and can see: they're not. Alternatively, you can use other browsers if you can figure out how to use their own development tools.
Start to understand why your browser sends HTTP request headers and why web servers send HTTP response headers.
Learn how to spy on your Web browser's HTTP requests and responses.