通过c#.net登录网站 [英] Login to website via c#.net
本文介绍了通过c#.net登录网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试编写ac#.net应用程序以登录网站www.EODData.com,我几乎知道使用HttpWebRequest的代码,我想这是这里描述的内容:
http://social.msdn.microsoft.com/论坛/en-US/netfxnetcom/thread/ab2e29c3-540b-48fc-ad90-b0d170f09352 [
I''m trying to write a c#.net application to log into a site, www.EODData.com, I rougly know the code to use HttpWebRequest, which, I would imagine is something like what is described here:
http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/ab2e29c3-540b-48fc-ad90-b0d170f09352[^]
What I need is a way to call the Login method on the website on EOData with a username and password via a c#.
Can anyone assist with this please.
Thanks.
推荐答案
使用Credentials属性提供登录信息
http://msdn.microsoft.com/en-us/library/system. net.httpwebrequest.credentials.aspx [ ^ ]
Use the Credentials property to provde login information
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.credentials.aspx[^]
这篇关于通过c#.net登录网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文