Try setting the HttpWebRequest.UserAgent
property.
Modify user-agent WP8
-
08-07-2023 - |
Pergunta
In my windows phone 8 app, I call to external APIs developed by client may be in PHP. They told us that the user agent is showing NativeHost. They want it to be Windows Phone so that they could better track the windows phone requests.
Solução
Outras dicas
Tr this one
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("User-Agent", "my-user-agent-name");
Hope you are using HTTP client to make call to external API
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow