painting new headers.

Hey guys i have a set of non coated steel doug headers. I want to paint them before i install them. Does anyone have a method of painting them without rust later on or flaking of paint. Iv heard something about baking paint on. Yes i know i should of bought coated headers..also will breaking a new 340 in with theee headers if that makes any difference.