A method and apparatus for manufacturing hollow, provided with flanges belongings