How can I pass slash and other 'url sensitive' characters to a WCF REST service?

前端 未结 3 1386
灰色年华
灰色年华 2020-12-19 06:47

I have a REST WCF service that has a method that gets a parameter as a string. This string can contain slash / character. It makes my request wrong, as I think the URL goes

3条回答
  •  清酒与你
    2020-12-19 07:05

    Try forcing a \ before each /. (normally it forces the metacharacters to be read as a normal character)

提交回复
热议问题