Simple and yet I've often wished there were a good, simple tutorial for this in Unity (too much in Unity is undocumented, and only exists in long, waffling YouTube videos that are appallingly lazy, no effort taken to understand and teach the concept. The speaker simply says the same thing 5 times over in slightly different ways, hoping listeners will eventually work it out).
A few notes:
- "determine WHETHER" (spelling)
- "the response ITSELF" (grammar)
- "download is COMPLETE" (spelling)
- ... lots of these. I suggest you run it through MS Word, with both grammer + spelling check.
- it would be much cleare if you described the variables using the same breakdown approach you used for the methods. Right now you have a massive block of code-text, then a fat paragraph that munges together descriptions of everything in there. Very hard to reference, and not easy to read/understand.
- Is
HttpWebRequest the best way to do this? I am very, very ignorant of C# best-practice APIs, but my impression was that there are much better 3rd party replacements out there that give more options, more feedback on progress, better debugging etc. If I'm wrong, cool - but it would help enormously if you wrote a few paragraphs about where
HttpWebRequest fits within the scheme of things. Then when people see your post compared to ones that use a completely different API, they at least can see *why* you picked
HttpWebRequest - and if you don't mention the other API, they can see that maybe it's worth trying both, etc.
- You say that DropBox doesn't support last-modified, but it's not clear what you do about that?