您好,登錄后才能下訂單哦!
restful接口的幾點說明
??? 1)url后面添加參數,可以直接通過&符號鏈接起來
例如:http://192.168.18.84/axis-cgi/com/ptz.cgi?camera=1&query=position
也可以通過Params的鍵值對進行填充
??? 2)認證可以通過Authorization進行添加,根據適當的Type類型進行選擇,也可以通過Header進行認證換算后填充,例如
Authorization: cm9vdDpyb290
??? 3)Postman指定了Connection: keep-alive屬性,因此需要服務器端主動斷開鏈接,否則會出現如下的問題: 一直提示Canceling Request,即使是收到了回復
??? 4)使用https進行請求的時候,如果返回異常,如下:
Could not get any response
There was an error connecting to https://192.168.58.42:8080/cs/restfull/operationRestfullApi/excuteSqlByCode.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General
解決方案: 打開settings界面,找到General界面,然后關閉SSL certificate verification即可,是不需要認證證書
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。