handle http method problem