{"id":26111,"date":"2018-08-22T14:50:55","date_gmt":"2018-08-22T19:50:55","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=26111"},"modified":"2018-08-22T14:50:55","modified_gmt":"2018-08-22T19:50:55","slug":"using-curl-to-upload-and-check-firmware-upgrade-file","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/rcell_api_appendix\/using-curl-to-upload-and-check-firmware-upgrade-file\/","title":{"rendered":"Using Curl to Upload and Check Firmware Upgrade File"},"content":{"rendered":"<p>This curl command uploads the firmware upgrade file to the device and checks it.\u00a0(This option includes checking the upgrade file signature.)<\/p>\n<pre class=\"brush:xml\">curl -i -k -b \/tmp\/headers --http1.0 -F file=@rcell_mtr_upgrade.bin \"https:\/\/192.168.2.1\/api\/command\/firmware_check?check_signature=0&amp;token=5CD884F57998F12731C95C95C4D4087\"\r\n\r\nHTTP\/1.0 200 OK\r\nAccess-Control-Allow-Origin: *|\r\nSet-Cookie: token=5CD884F57998F12731C95C95C4D4087; Path=\/; Secure\r\nCache-Control: no-cache\r\nContent-type: text\/plain\r\nContent-Length: 67\r\nConnection: close\r\nDate: Wed, 13 Jun 2018 19:46:26 GM\r\nServer: rcell\r\n\r\n{\r\n   \"code\" : 200,\r\n   \"status\" : \"success\",\r\n   \"type\" : \"upload\"\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This curl command uploads the firmware upgrade file to the device and checks it.\u00a0(This option includes checking the upgrade file signature.) curl -i -k -b \/tmp\/headers &#8211;http1.0 -F file=@rcell_mtr_upgrade.bin &#8220;https:\/\/192.168.2.1\/api\/command\/firmware_check?check_signature=0&amp;token=5CD884F57998F12731C95C95C4D4087&#8221; HTTP\/1.0 200 OK Access-Control-Allow-Origin: *| Set-Cookie: token=5CD884F57998F12731C95C95C4D4087; Path=\/; Secure Cache-Control: no-cache Content-type: text\/plain Content-Length: 67 Connection: close Date: Wed, 13 Jun 2018 19:46:26 GM Server: [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":13423,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-26111","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=26111"}],"version-history":[{"count":1,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26111\/revisions"}],"predecessor-version":[{"id":26112,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/26111\/revisions\/26112"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13423"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=26111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}