Body
Hi guys. I'll be rather brief if I can so here goes.
I made this app in C# that goes onto my employee portal and automatically gets my shifts for me every 30 minutes my using a web browser control and then it reads the HTML data from that and generates a calendar for me and also provides automated alerts.
身体嗨伙计们。如果我能这样做,我会相当简短。我在C#中创建了这个应用程序进入我的员工门户网站,并且每30分钟自动为我调整一次,我使用Web浏览器控件,然后从中读取HTML数据并为我生成日历并提供自动警报。
Issue
Problem is that this web browser uses IE (yeesh help me) and it doesn't work with all parts of the site. I have done some digging around on the site and I found where the ASP site gets the data from: An XML sheet somewhere on the server. I can access this XML sheet, but only if I'm logged in (please see the attached images for more information).
问题问题是这个网页浏览器使用IE(yeesh帮助我),它不适用于网站的所有部分。我在网站上做了一些挖掘,我发现ASP网站从哪里获取数据:服务器上某处的XML表。我可以访问此XML表,但仅在我登录时(请参阅附加的图像以获取更多信息)。
Current solution
So my question is this: How do I actually login to this area?
I could login using the webbrowser and then download the XML using that, but it's too slow and too old, so is there a way I can pass my credentials through? The URL is like this "https://www.mycoles.com.au/api/rosters/nextweek" -- I don't see any thing like ?name=myname ?pass=mypassword... soo yea. (I'm a bit new).
当前的解决方案所以我的问题是这样的:我如何实际登录这个区域?我可以使用webbrowser登录然后使用它来下载XML,但它太慢而且太旧了,所以有没有办法可以通过我的凭据? URL就像这样的“https://www.mycoles.com.au/api/rosters/nextweek” - 我没有看到任何类似的东西?name = myname?pass = mypassword ... soo yea。 (我有点新)。
Further details:
Application language: C#.
Current technology: Windows forms applications/ IE web browser control.
Site backend: Microsoft Sharepoint.
Anything I'm missing? Please ask..?
更多细节:应用语言:C#。当前技术:Windows表单应用程序/ IE Web浏览器控件。站点后端:Microsoft Sharepoint。我错过了什么?请问..?
Attached content
Mycoles XML Logged in
Mycoles XML Access Denied Update: So after a while of searching and examining the site, I tried to access the data with a c# webbrowser and it didn't work. It said that it can't download the data, however chrome is able to. Odd. I'm not sure it is an XML file anymore, rather a request and I don't have enough knowledge to work with this, so pointers anyone? Check this site out https://www.mycoles.com.au/api/rosters/nextweek and tell me what you think it is please. Thanks in advance... :)
附加内容Mycoles XML登录Mycoles XML Access拒绝更新:因此,经过一段时间的搜索和检查网站,我尝试使用c#webbrowser访问数据,但它无法正常工作。它说无法下载数据,但Chrome能够。奇。我不确定它是一个XML文件,而不是一个请求,我没有足够的知识来处理这个问题,所以指点任何人?检查这个网站https://www.mycoles.com.au/api/rosters/nextweek并告诉我你的想法。提前致谢... :)
1 个解决方案
#1
0
SharePoint supports different forms of authentication. Out of the box, Active Directory-based single sign-on is provided, and forms-based (username, password) authentication can be configured.
SharePoint支持不同形式的身份验证。开箱即用,提供基于Active Directory的单点登录,并且可以配置基于表单(用户名,密码)的身份验证。
Typically, organizations use AD SSO for its simplicity. If, once you open your desktop browser and navigate to a SharePoint site, you don't have to enter any credentials and are just logged in, then it's most likely this case. This can be either Kerberos or NTLM. The HttpWebRequest
class supports both these methods.
通常,组织使用AD SSO是为了简化。如果在打开桌面浏览器并导航到SharePoint网站后,您不必输入任何凭据并且只是登录,那么很可能就是这种情况。这可以是Kerberos或NTLM。 HttpWebRequest类支持这两种方法。
#1
0
SharePoint supports different forms of authentication. Out of the box, Active Directory-based single sign-on is provided, and forms-based (username, password) authentication can be configured.
SharePoint支持不同形式的身份验证。开箱即用,提供基于Active Directory的单点登录,并且可以配置基于表单(用户名,密码)的身份验证。
Typically, organizations use AD SSO for its simplicity. If, once you open your desktop browser and navigate to a SharePoint site, you don't have to enter any credentials and are just logged in, then it's most likely this case. This can be either Kerberos or NTLM. The HttpWebRequest
class supports both these methods.
通常,组织使用AD SSO是为了简化。如果在打开桌面浏览器并导航到SharePoint网站后,您不必输入任何凭据并且只是登录,那么很可能就是这种情况。这可以是Kerberos或NTLM。 HttpWebRequest类支持这两种方法。