I am trying to download a file through BITS and the job is failing ( giving me a error) as i failed to mention "referer" in http header in the GET request.
BitsManager manager = new BitsManager();
manager.EnumJobs(JobOwner.CurrentUser);
BitsJob newJob = manager.CreateJob(j.filename, JobType.Download);
j.jobID = newJob.JobId;
newJob.AddFile(j.serverLink, "C:\\Downloads\\" + j.filename);
newJob.Priority = JobPriority.ForeGround;
newJob.MinimumRetryDelay = 60;
manager.OnJobTransferred += new EventHandler<NotificationEventArgs>(manager_OnJobTransferred);
manager.OnJobModified += new EventHandler<NotificationEventArgs>(manager_OnJobModified);
newJob.Resume();
Is there a way to configure the header for the GET request for the jobs ?
Thanks a ton,
Sunny