Skip to content

Conversation

@jwerba
Copy link

@jwerba jwerba commented Nov 9, 2015

The API couldnt be used behind a proxy
I was getting error code (407) "Proxy Authentication Required."

I solved telling .NET to use default proxy configuration

static WhatsRegisterV2()
{
System.Net.WebRequest.DefaultWebProxy.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
}
The default behaviour of WebRequest.DefaultWebProxy is to use the same underlying settings as used by Internet Explorer.

…inition for serverName and a warning about The field WhatsNetwork.whatsHost is never used
…underlying settings as used by Internet Explorer/OS
@jwerba
Copy link
Author

jwerba commented Nov 14, 2015

@sanderdriesen please review this PR for your aproval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant