http/https port specification bug

Even if the user specifies the port the `validateHttpArgs` function always gets the empty Port attribute of the ValidateHttpRequest struct, cause the port number is assigned into the struct after the validateHttpArgs validation call.