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

前端 未结 2 1086
时光取名叫无心
时光取名叫无心 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:44

    Yes. %7C is PIPE Character that needs to be used in URL. following is another example that I used successfully. In this neighborhood name is "ROOT|RESTFUL" which is represented as ROOT%7CRESTFUL

    http://localhost:8080/BAE_4_3_API/rest/v1/user/rahul1/neighborhood/ROOT%7CRESTFUL/collaboration/1000/whiteboard

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题