addheader? rourltransfer

Can somebody explain to me what the addheader() does and how to use it?