Welded hydraulic cylinder with front flange and thread on piston rod