2つのオプションがあると思います。
最初のオプションは、Ajaxを使用してクライアント側でこれを行うことです。http://api.jquery.com/jquery.ajax/
コードは次のように見える可能性があります:
function CallOtherSite(otherSiteUrl) {
$.ajax({
url: otherSiteUrl,
cache: false,
success: function (html) {
//This will be the html from the other site
//parse the html/xml and do what you need with it.
}
});
これはクライアント側のJavaScriptで行われるため、CORSの問題に遭遇する可能性が高いでしょう。 (http://blogs.msdn.com/b/carlosfigueira/archive/2012/02/20/implementing-cors-support-in-asp-net-web-apis.aspx)
私の意見では、他のオプションとより良いオプションは、サーバー側でこれを行うことです。 (コントローラーのいずれかで、またはかみそりのビュー)(コントローラーでははるかに簡単になります...)
try
{
var request = (HttpWebRequest)WebRequest.Create(urlToOtherSite);
request.Accept = "application/xml";
request.Method = "GET";
webResponse = (HttpWebResponse)request.GetResponse();
sr = new StreamReader(webResponse.GetResponseStream());
string responseText = sr.ReadToEnd();
}
catch(Exception ex)
{
}
finally
{
if (sr != null) { sr.Close(); }
if (webResponse != null) { webResponse.Close(); }
}
その後、StreamReaderを使用してHTML/XMLを取得し、それを使用することを行うことができます。
お役に立てれば...