Thanks for this! I was struggling a bit until I found this and noticed this line:
webClient.Headers.Set(HttpRequestHeader.UserAgent, "zcommand");
I didn't see anything in the documentation that said I had to set a user agent, but when I did this, it started working!