將WebMethod請求是如下:響應在Jemter web方法是 「否HTTP資源發現匹配的請求URI」
POST https://<WebSiteName>.com/avl/api/video/setoptions
POST數據: templateVehicleId = CA7C1D2A-E255-4A79-8621- 8B88C6C815C8 & PreEventSeconds = 1個& PostEventSeconds = 1 & HDAccelerometerEnabled =假& HarshEventEnabled =假& PushButtonEnabled =真& PushButtonAutoUploadEnabled =真& LoopRecordingEnabled =真
cookie數據: DirectorAuth = 5B9B4176C522AB4484AEE7BCDA658C0804E3597496BCACEF5105E90C562F6E4B2B2D019A1288F32154F3D7FEE1F07E5F6D9181FDC43A1EBD07446C059C7FEB9AF3411CDE792F0B4D71C3D45422BCA1AA3E8B3FAA84095AD679645902A4A09027B1319A863CE9102B67B80B38B0F1CDCE5F4A08CE6BC4C5115F03245D6F96BD769BA885DA02CB22AD368CE8E60EB4A10B737B1FDD9F3AAA24F4566ABA12AEC2402685C50E48F8B70ED36970F1F1F1AD35C65AE62CFB12102A3938AA7207843CFC59079573AAD8B3919C476B6D573FB349A638C0FD160842CF51FCCF8592461F061D9A3501244E576289CEE5FFA698EDEE4C594A174CAD207250C9F6005943DF5378B47CD55FA92352FFC316295FFCC8011130B2D291B16B1DD580A9922A4AF748DE38954B0A1DF15DF3B89C5AF057B4FB; Avl3UserPreferredLocale = en-US
請求標頭: 連接:保持活動 Content-Type:application/json;字符集= UTF-8 的Content-Length:226 主機:.COM 用戶代理:Apache的HttpClient的/ 4.2.3(java的1.5)
和響應我得到的是:
{"Message":"No HTTP resource was found that matches the request URI 'https://<WebSiteName>.com/avl/api/video/setoptions'.","MessageDetail":"No action was found on the controller 'DashcamApi' that matches the request."}
不確定爲什麼我得到:找不到與請求URI錯誤匹配的HTTP資源。
我已經提到了WebSiteName以及請求中的servername。仍然面臨這個問題。 – user8789100
您的JSON內容標題是錯誤的,將標頭內容類型值更改爲應用程序/ x-www-form-urlencoded – user7294900
我將內容類型值更改爲application/x-www-form-urlencoded,但它仍然給我帶來同樣的錯誤。 – user8789100