如何通过身份验证将参数传递给代理
How to pass parameters to an agent with authentication
我有一个 Web 代理,它接受几个用于查找和 return 文件的参数。但我需要先进行身份验证。
如果我这样做:
http://url.com/agentName?openagent&p1=test1&p2=test2
代理工作正常并且 return文件。
但是当我尝试添加身份验证部分时:
http://url.com/names.nsf?username=test&password=test&redirectto=http://url.com/agentName?openagent&p1=test1&p2=test2
代理仅在 query_string_decoded(0) 字段中看到 "openagent"。其余参数丢失。
有办法吗?
谢谢
克莱姆
尝试对 redirectto 参数进行 URLEncoding。
http://url.com/names.nsf?username=test&password=test&redirectto=http%3A%2F%2Furl.com%2FagentName%3Fopenagent%26p1%3Dtest1%26p2%3Dtest2
我有一个 Web 代理,它接受几个用于查找和 return 文件的参数。但我需要先进行身份验证。
如果我这样做:
http://url.com/agentName?openagent&p1=test1&p2=test2
代理工作正常并且 return文件。
但是当我尝试添加身份验证部分时:
http://url.com/names.nsf?username=test&password=test&redirectto=http://url.com/agentName?openagent&p1=test1&p2=test2
代理仅在 query_string_decoded(0) 字段中看到 "openagent"。其余参数丢失。
有办法吗?
谢谢 克莱姆
尝试对 redirectto 参数进行 URLEncoding。
http://url.com/names.nsf?username=test&password=test&redirectto=http%3A%2F%2Furl.com%2FagentName%3Fopenagent%26p1%3Dtest1%26p2%3Dtest2