如何从URL重定向的操作结果中获取URL结果 [英] how to get URL result from a an action result of URL redirection
本文介绍了如何从URL重定向的操作结果中获取URL结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
全部问候,
我想从我的ActionResult获取URL重定向的结果。
我有一个我应该重定向的第一个URL,我怎么能得到结果网址
这是我的代码:
Greeting All ,
I want to get the result of an URL redirection from my ActionResult .
I have a first URL that I should redirect , how can I get the resulted URL
this is my code :
public ActionResult Auth()
{
string loginUrl = "https://www.linkedin.com/uas/oauth2/authorization?" +
"response_type=code" +
"&client_id=" + API
+ "&state=DCEEFWF48883sdffef424"
+ "&redirect_uri=" + redirect_uri ;
Redirect(loginUrl);
//string codeParameter = HttpUtility.ParseQueryString(loginUrl).Get("client_id");
//string url = System.Web.HttpContext.Current.Request.Url.AbsoluteUri;
return Redirect(loginUrl);
}
提前致谢。
Thanks in advance .
推荐答案
这篇关于如何从URL重定向的操作结果中获取URL结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文