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

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

提交回复
热议问题