C# 如何发送带有查询字符串(包含作为查询字符串的url)的url作为查询字符串
我需要重定向到一个url,该url作为查询字符串发送到我的应用程序,其中包含一个url作为查询字符串。这可以在三个或四个级别重复 假设我的应用程序可以使用example.com访问,我有一个如下请求:C# 如何发送带有查询字符串(包含作为查询字符串的url)的url作为查询字符串,c#,wcf,url,redirect,query-string,C#,Wcf,Url,Redirect,Query String,我需要重定向到一个url,该url作为查询字符串发送到我的应用程序,其中包含一个url作为查询字符串。这可以在三个或四个级别重复 假设我的应用程序可以使用example.com访问,我有一个如下请求: http://example.com/?landing={http://example2.com/?landing={http://example3.com/?landing={http://google.com}¶m=4}¶m=3}¶m=1 “{
http://example.com/?landing={http://example2.com/?landing={http://example3.com/?landing={http://google.com}¶m=4}¶m=3}¶m=1
“{”和“}”用于提高可读性,实际上在URL中不存在
我必须转到
http://example2.com/?landing={http://example3.com/?landing={http://google.com}¶m=4}¶m=3
示例2必须重定向到
http://example3.com/?landing={http://google.com}¶m=4
示例3必须重定向到http://google.com
我不知道如何发送“landing”查询字符串,以便将每个查询字符串传递到要使用的相应地址,也不知道如何在我的应用程序中或example2.com或example3.com上正确访问查询字符串。
需要您的帮助,Tnx…我通过对源代码中的查询字符串进行编码(urlencoding或base64encoding)并将用户发送到相应的页面来解决问题。在该页面上,将对查询字符串进行解码,并将用户重定向到下一个查询字符串,该过程将一直执行到最后一个登录页面