操屁眼的视频在线免费看,日本在线综合一区二区,久久在线观看免费视频,欧美日韩精品久久综

新聞資訊

    首頁\問答\HTTP中的“406不可接受的響應”是什么?(What is “406-Not ” in HTTP?)

    HTTP中的“406不可接受的響應”是什么?(What is “406-Not ” in HTTP?)

    在我的Ruby on Rails應用程序中,我嘗試通過POSTMAN REST客戶端以Base64格式上傳圖像。 當我發布圖像時,我得到了406不可接受的回應 。 當我檢查我的數據庫,圖像在那里,并被成功保存。

    這個錯誤的原因是什么,我需要在我的標題中指定什么?

    我的請求:

    URL --- http://localhost:3000/exercises.json

    標題:

    Content-Type  -  application/json
    

    原始數據:

    {
        "exercise": {
            "subbodypart_ids": [
                "1",
                "2"
            ],
            "name": "Exercise14"
        },
        "image_file_name": "Pressurebar Above.jpg",
        "image":"******base64 Format*******"
    }
    

    In my Ruby on Rails I tried to an image the REST in . When I POST the image I am a 406 Not . When I my , the image was there and was saved.

    What is the for this error, is there I need to in my ?

    My :

    URL --- :3000/.json

    :

    Content-Type  -  application/json
    

    Raw data:

    {
        "exercise": {
            "subbodypart_ids": [
                "1",
                "2"
            ],
            "name": "Exercise14"
        },
        "image_file_name": "Pressurebar Above.jpg",
        "image":"******base64 Format*******"
    }
    

    原文:

    更新時間:2022-07-04 19:07

    最滿意答案

    您的操作沒有失敗。

    您的后臺服務表示,您的客戶端請求中的Accept HTTP標頭中沒有提供它所返回的響應類型。

    參考: http : //en.wikipedia.org/wiki/List_of_HTTP_header_fields

    1. 找出服務返回的響應(內容類型)。
    2. 在您的請求中提供此(內容類型)接受標題。

    http://en.wikipedia.org/wiki/HTTP_status_code - > 406


    Your operation did not fail.

    Your backend service is saying that the response type it is returning is not provided in the Accept HTTP header in your Client request.

    Ref: http://en.wikipedia.org/wiki/List_of_HTTP_header_fields

    1. Find out the response (content type) returned by Service.
    2. Provide this (content type) in your request Accept header.

    http://en.wikipedia.org/wiki/HTTP_status_code -> 406

    相關問答更多

    相關文章更多

    json 請求提示406 Not tream() has been for this 問題表單提交后報406錯誤HTTP 響應狀態碼詳解HTTP緩存問題http 匯總HTTP 常用響應頭信息快速了解 使用連接池管理http請求對象HTTP請求方法詳解

    最新問答更多

    我用的是金蝶V10。4電腦無響應是什么原因,進入金蝶系統里提示“內存溢出”,打開后,進入外購入庫單,錄入單據,提示單據顯示錯排除文件擴展名( file )無效簽名開放銀行項目。0a( Open Bank 。0a)幫助()在中找到信息的位置?(Where does help() find the info in ?)根據另一個單元格的值更改單元格的字體顏色( the font color of cell based on the value of cell)從模板中的視圖渲染表單( form from view in a )在啟動活動時使用 API(Using the API when an )刪除項目版本( Item )如何從更新CID字體(How CID font from )將數據(從服務器檢索)從父路由傳遞到其子路由(Pass data ( from ) from route to its child route)將數據庫GUI連接到()( GUI to ())為什么會不時創建新的網絡接口(Why a new from time to time)如果單元格值為0,則如何返回0;如果單元格為空電腦無響應是什么原因,則返回來自不同單元格的值(How to 0 if cell value is 0 or value from cell if cell is empty)代碼說明: model = new (new File(“intro。

    csv”));(Code : model = new (new File(“intro。csv”));)如何在動態where子句中做一個列名?(How to do a name of a where ? ( name))使用Ajax調用相同的頁面會使主體內容顯示兩次(Using Ajax to call the same page makes the body show twice)PHP NEXT 按鈕(PHP - next/ )java - 無法檢測到碰撞(平臺游戲)(java - fails to ( game))如何在 的 Bar中添加第二個下拉列表?(How to add a drop down list to Bar in ?)如何獲得谷歌地圖中心的經緯度(How to get and of of map)在網頁上使用進行SSO(Using for SSO on )易達清單大師如何調價!主要是調哪些,最好詳細一點!!具體那些地方!!有教程更加好!!AWK:如何確定在awk的()命令中使用的shell?(AWK: How can one the shell to be used in awk's the () ?) - 根據用戶狀態發布集合( - a based on the users ):ON 未按預期工作(: ON is not as )Excel / 動態條形圖,不使用偏移量(Excel/ bar chart using )在中的用戶模式轉儲中查找hwnd信息(Find hwnd in a user mode dump in )使用t和來訪問內容提供者(using t vs to )iOS:比較兩個日期(iOS: two dates)

網站首頁   |    關于我們   |    公司新聞   |    產品方案   |    用戶案例   |    售后服務   |    合作伙伴   |    人才招聘   |   

友情鏈接: 餐飲加盟

地址:北京市海淀區    電話:010-     郵箱:@126.com

備案號:冀ICP備2024067069號-3 北京科技有限公司版權所有