C# WebClient HTTP Basic Authentication Failing 401 with Correct Credentials
问题 I'm trying to automate configuring a wireless router's SSID and Password via c# webclient. The router has no API that I know of. It's an unbranded chinese router. The web config seems to be the only option for configuration. It uses http-basic-authentication (you browse to the IP address of the router and get a generic dialog asking for username and password). I've used Wireshark to get the headers and form fields that the http-post requests use when I manually update the SSID and Password