2 years later, I used Dallas' answer, but I had to change the HttpWebRequest
to FileWebRequest
since I was linking to direct files. Not sure if this is the case everywhere, but I figured I'd add it. Also, I removed
var resp = Http.Current.Resonse
and just used Http.Current.Response
in place wherever resp
was referenced.