Widnows.Web.HttpのHttpClientでリダイレクトを許可する

Windows.Web.HttpのHttpClientでhttps通信をしようとしたらこんなエラーがでました。

WinRT 情報:リダイレクトの要求により、セキュリティで保護された接続から保護されていない接続へ変更されます

 

このページで解決

Windows 8.1 Windows.Web.HTTP.HTTPClient – Secure to Non Secure Redirect Exception

 

var filter = new HttpBaseProtocolFilter();
filter.AllowAutoRedirect = false;
HttpClient client = new HttpClient(filter);

 

1 Reply to “Widnows.Web.HttpのHttpClientでリダイレクトを許可する”

  1. I like this post. I need to more data about this subject and now, I got all data from your post. Everything characterizes in this post is magnificent. I figure you should make more post which helps us .I additionally share an asset important your theme. I would have missed the valuable data in the event that I didn’t discover your site. So continue sharing.I would like to see more from you.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.