Encoding parameters for a URL

前端 未结 3 867
温柔的废话
温柔的废话 2020-11-29 06:49

I have a Silverlight application that is building a URL. This URL is a call to a REST-based service. This service expects a single parameter that represents a location. The

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 07:32

    I would recommend Uri.EscapeDataString instead of using HttpUtility functions. See discussion in Server.UrlEncode vs. HttpUtility.UrlEncode.

提交回复
热议问题