开发者

HTTPS equivalent of WebRequest.CreateHttp on Windows Phone 7?

I have some C# code in a Windows Phone app...

WebRequest wrq = WebReque开发者_运维知识库st.CreateHttp("http://bing.com");

is it possible to make this use HTTPS instead? There's no CreateHttps, and no obvious flags for me to fiddle with.

Chris


Have you tried following?

WebRequest wrq = WebRequest.Create("https://bing.com");

Notice that the url uses HTTPS scheme. I believe this should just work fine. Did you run into some issue with this method?


Note you should not use CreateHttp in your app code! http://msdn.microsoft.com/en-us/library/ff382776%28v=vs.95%29.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜