Board Thread:Support Requests - Getting Technical/@comment-5518179-20141019052909/@comment-1142365-20141019092009

Bad handshakes are a result of either being banned from chat, or you haven't assigned any cookies from login to your WebRequest. Chat needs your login cookies to give you a session ID.

Use a CookieContainer object to collect the cookies from login, and then set the CookieContainer property of the WebRequest you're using to get the session ID to the aforementioned CookieContainer object. More info here.

Also note that WebRequest.Method must be set to "GET".