// 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 }