从其他网站获取考试结果并在我的网站上显示 [英] to fetch the exam result from other website and to display on my website

查看:96
本文介绍了从其他网站获取考试结果并在我的网站上显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
i’m  tried to make my own edu website but i’m facing lot of problem:
1)when the students enter their usn no/reg no(eg:1db12cs005) when user hit submit button it must fetch result from external website(eg:http://www.results.vtu.ac.in/)‎ but I don’t want to redirected to the external website, where results can be seen. Instead, I want the results to be displayed on the same website(its mine). I’m open to to all kinds of suggestion!
but dont post a code on reply form instead plz mail me punithramesh007@gmail.com

there r many website for (eg fastvturesults.com,vtualerts) they fetch from website http://results.vtu.ac.in/vitavi.php and display there result on there own table plz help me out from this problem

推荐答案

要从其他网站获取数据,请执行以下操作:



To get data from another site do this:

string Url = "http://someurl";
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(Url);
myRequest.Method = "GET";
WebResponse myResponse = myRequest.GetResponse();
            
StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8);
string result = sr.ReadToEnd();
sr.Close();
myResponse.Close();


最好先联系您尝试从中获取数据的网站所有者。通常有一项服务条款,拒绝您在未经他们明确书面许可的情况下重复使用其内容。



除此之外,为什么会有任何人知道任何事情关于安全问题,为您的网站提供他们在其他网站上使用的凭据?用户有什么保证你不会将他们的凭据用于恶意目的?



提示:他们没有任何。
You better start by contacting the owners of the website you're trying to get data from. Usually there is a Terms of Service in place that denies you from reusing their content without express written permission from them.

On top of that, why would anyone who knows anything about security issues give your website the credentials they use on some other website? What guarantees do the users have that you won't use their credentials for malicious purposes??

Hint: They don't have any.


这篇关于从其他网站获取考试结果并在我的网站上显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆