我希望每当用户键入http://localhost:8280/services/Facebook/sea
实际请求时应该是http://localhost:8280/services/Facebook/search?q=jack
. 这是代理服务 Facebook 的 synapse.xml 配置的一部分。但它不起作用,配置有什么问题?
<proxy name="Facebook" transports="https http" startOnLoad="true" trace="disable">
<target>
<endpoint>
<address uri="http://graph.facebook.com"/>
</endpoint>
<inSequence>
<rewrite>
<rewriterule>
<action value="search?q=jack" regex="sea" type="replace" fragment="host"/>
</rewriterule>
</rewrite>
<log level="full"/>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
</proxy>