Modify the method which generate http command