Problem with Windows Phone BackgroundTransferRequest

I'm currently trying to write a Windows Phone 7.1 application that allows you to access Coursera class information, including streaming lectures.

I also want to allow users to upload lecture videos as slides (PDF). Sorry, the files are protected. This is usually not a problem. I have ClientHttpWebRequestto use CookieContainer. This is good and good.

Fun while trying to use BackgroundTransferRequestto load assets. The class does not allow you to provide an instance CookieContainerfor cookies. This means that I have to set the values ​​with BackgroundTransferRequest.Headers.

Coursera returns its session cookie as an HttpOnly cookie. Unfortunately, it ClientHttpWebRequestdoes not allow you to access HttpOnly files from the response, but through a proxy means that I can not read the session cookie from CookieContainer.

Is there something obvious that I'm missing out there that will allow me to access the values ​​that interest me, or do I need to come up with my own background file transfer infrastructure?

+5
source share
1 answer

No, you did not miss anything. This is the gap in the proposed SDK.

I can think of 2 possible alternatives.

  • Ask the application to run under the lock screen and process the downloads by itself. “So we had to do this before the transfer of the background file was available.”

  • -, , cookie . , , , . .

+1

All Articles