Fix the bug regarding user-agent
Add api.getOK and api.setOK in OutputHelper