【发布时间】:2016-09-25 11:56:55
【问题描述】:
我需要重定向到一个 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
'{' 和 '}' 用于增加可读性,实际上并不存在于 url 中。
我必须重定向到
http://example2.com/?landing={http://example3.com/?landing={http://google.com}¶m=4}¶m=3
example2 必须重定向到
http://example3.com/?landing={http://google.com}¶m=4
example3 必须重定向到http://google.com
我不知道如何发送“登陆”查询字符串,以便将每个查询字符串传递到要使用的相应地址,或者如何在我的应用程序或 example2.com 上正确访问查询字符串或example3.com。 需要你的帮助,Tnx...
【问题讨论】:
标签: c# wcf url redirect query-string