如何发送带有查询字符串的 url(包含 url 作为查询字符串)作为查询字符串

how to send a url with query string (containing a url as a query string) as a query string

我需要重定向到 url,它作为包含 url 作为查询字符串的查询字符串发送到我的应用程序。这可以在三个或四个级别重复。

假设我的应用程序可以使用 example.com 访问,并且我有这样的请求:

http://example.com/?landing={http://example2.com/?landing={http://example3.com/?landing={http://google.com}&param=4}&param=3}&param=1

'{'和'}'用于增加可读性,实际上并不存在于url中。

我必须重定向到

http://example2.com/?landing={http://example3.com/?landing={http://google.com}&param=4}&param=3

example2 必须重定向到

http://example3.com/?landing={http://google.com}&param=4

并且 example3 必须重定向到 http://google.com

我不知道如何发送 'landing' 查询字符串以便将每个查询字符串传递到要使用的相应地址,或者如何在我的应用程序中正确访问查询字符串,或者example2.com 或 example3.com。 需要你的帮助,Tnx...

我通过编码(urlencoding 或 base64encoding)源中的查询字符串解决了这个问题,并将用户发送到相应的页面。在那个页面上,查询字符串被解码,用户被重定向到下一个查询字符串,这个过程一直持续到最后一个登陆页面。