How to handle escape characters (pipe |) in URL (Spring, REST, CXF)?

前端 未结 2 1085
时光取名叫无心
时光取名叫无心 2021-01-14 15:57

I am using Spring, CXF, Tomcat for developing web services.

I have a problem sending characters such as pipes(|) in the URL?

For example: http://localh

2条回答
  •  太阳男子
    2021-01-14 16:46

    please refer here for url encoding. Say suppose if you want to send Sachin|Tendulkar. You can send as Sachin%7CTendulkar.

提交回复
热议问题