Uncategorized

Postman – test API

Postman learning portal https://learning.getpostman.com/docs/postman/scripts/test_scripts/ Global variable postman.setGlobalVariable(“foobar”, “1”); tests[“global var foobar = true”] = globals.foobar == true; postman.setGlobalVariable(“bar”, “0”); tests[“global var bar = false”] = globals.bar == false; Envirement variable Change String to Number parseInt(environment.RESPONSE_TIME) Get HTML code Use CheariosJs Read More

Multiple node on mac

Use nvm to mange multiple node installation Installing nvm https://www.codementor.io/mercurial/how-to-install-node-js-on-macos-sierra-mphz41ekkhttps://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash List available version nvm ls-remote nvm install 10.15.3 Install required version Switch between node version npm use 10.15.3

Tomcat enable special character in request

To allow pass parameter as json request enable allow characters “{}” in tomcat configuration file catalina.properties    # Allow for changes to HTTP request validation # WARNING: Using this option will expose the server to CVE-2016-6816 #tomcat.util.http.parser.HttpParser.requestTargetAllow=| # tomcat.util.http.parser.HttpParser.requestTargetAllow={}