modified getFile method so that it checks for GET and HTTP/1.1