So I've had an issue with my Gargoyle 1.5.5 system, where a file I was downloading now requires authentication.
http://www.geekzone.co.nz/forums.asp?forumid=66&topicid=105722
A helpful sidefx found that when you login in to the router a script called \utiltity\get_password_cookie.sh is called with the password= post variables.
So I'm calling this with the correct password, but what I'm not seeing is a "hash" cookie in a HttpWebResponse Cookie collection. What I'm actually getting is a byte array as a return value for webClient.UploadData that contains the Set-Cookie:hash= etc
I then need to try and use this in a subsequent request, but for the life of me cannot get it to work.
Anyone have any pointers?
I can post parts of the code if need be, I've implemented an extended WebClient (CookieAwareWebClient) to deal with the cookies, but at the point that the CookieAwareWebClient is processing the response, the hash cookie does not exist.