Sets request headers according the the request type and the supplied info.