[英]Javascript with SharePoint 2013 REST Endpoint “INSERT” into List?
[英]How to encode a list name for REST in sharepoint 2013
我在en
網站上創建了一個名為
@#$%^& (){} []:;;“'<>?/ \\ | -++。
我想做的是,如果我嘗試通過REST網址中的名稱來定位該名稱,那么該名稱的編碼版本將是什么。 我有這個
http:// mysite / en / _api / web / lists / getbytitle (“ hello's〜` !@#$%^& (){} []:;;“'<>?/ \\ | -+。')
但這當然行不通。 我嘗試將網址編碼為
http:// mysite / en / _api / web / lists / getbytitle ('hello% 27s〜 %60!%40%23%24%25%5E%26 *()%7B%7D%5B%5D%3A%圖3B%22%27%3C%3E%3F%2F%5C%7C * - %2B')
但即使那樣,它也不起作用。
有人知道怎么做嗎?
謝謝
表達方式:
你好的〜`@#$%^&(){} [] :;“'<> / \\ | - !?+。
至少包含以下無效符號<,>,*,%,&,:,\\\\,?
(遵循HttpRuntimeSection.RequestPathInvalidCharacters
屬性以獲取更多詳細信息)
因此,如果列表標題包含任何指定的無效符號, A potentially dangerous Request.Path value was detected from the client
錯誤中A potentially dangerous Request.Path value was detected from the client
將在REST請求中返回。
關於'
(單引號)符號,應通過將其替換為''
(雙引號)符號來對其進行轉義。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.