Fixed Dotnet api client not working with HTTPS and AFNetworking

Fixes #8