Fixed https issue
Fixed issue when a folder doesn't exist.
Created default for port and http method