Define Request_Sheme and port if needed
Fix bugs on HTML vars