【发布时间】:2014-10-06 08:26:33
【问题描述】:
在服务器(嵌入式 Jetty)上,我需要重定向到另一个端口,而其他所有内容都保持不变,例如,从重定向
http://com.example.myserver:1234/whatever?with=params#and-hash?and=whoknowswhat
到
http://com.example.myserver:5678/whatever?with=params#and-hash?and=whoknowswhat
看起来我必须用我不知道的东西来组合生成的 URL:
- 浏览器使用的服务器名称
- URL 的剩余部分
【问题讨论】:
标签: java embedded-jetty http-redirect