August 1999
Intermediate to advanced
1488 pages
72h 53m
English
request.protocol
The protocol property of the request object specifies the version of the HTTP protocol used in the request. This version is conveyed in the following format:
HTTP/1.0
Listing 8.110 takes a look at the protocol property to see if the request is HTTP 1.1. You can then insert any processing code needed, based on the protocol version supported by the client.
<SERVER>
// Check the protocol version
if(request.protocol.indexOf("1.1") != -1){
// Perform your HTTP 1.1 processing of the form here
}else{
// Perform non-HTTP 1.1 processing here
}
</SERVER>
|
Read now
Unlock full access