简体   繁体   中英

How to login in by HTTPS post request in windows phone 8?

I have scenario where my app has to login in by specifying username and password. After successful login I am going to show user all contents.

For example user wants to see https://login.live.com inbox item. Where user will enter his username and pass in my application's input filed instead of https://login.live.com . Then application will signed him and show his email inbox.

For this purpose I have to use WebView class to host html content. But I cannot just bring the login page directly to user for logging purpose. So I have to sign the user programmatically then show him all content by WebView class.

Thus I thought it should be possible to use https post request to sign first then use same https session. I might be wrong, there could be other way for windows phone 8. I don't know right api for windows phone 8. So could you please suggest how can I achieve this goal by using windows phone 8 API?

Thanks in advance!

I don't think that you can do with windows 8 API because if you want do a client mail(like thunderbird) you must use POP3, IMAP protocls for receveing mails and SMTP protocol for sending mails.

Here you can find a good library(with references) that implement POP3 protocol

And here you can find an example about the use of SMTP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM