HTTP API - MMS File Upload: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
(Created page with "=== 9.1         Request === '''POST <nowiki>https://gateway_ip/api/mms_file/file{0..31}</nowiki>''' '''Use HTTP Post to upload a file to the gateway, file name should be file0, file1, ...''' === 9.2         Example === ====== Request: ====== curl -H "Content-Type: multipart/form-data" -F "file=@filename"  <nowiki>http://gateway_ip/api/mms_file/file0</nowiki>")
 
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
=== 9.1         Request ===
'''POST <nowiki>https://gateway_ip/api/mms_file/file{0..31}</nowiki>'''
'''POST <nowiki>https://gateway_ip/api/mms_file/file{0..31}</nowiki>'''


'''Use HTTP Post to upload a file to the gateway, file name should be file0, file1, ...'''
'''Use HTTP Post to upload a file to the gateway, file name should be file0, file1, ...'''


=== 9.2         Example ===
Example:


====== Request: ======
Request:
curl -H "Content-Type: multipart/form-data" -F "file=@filename"  <nowiki>http://gateway_ip/api/mms_file/file0</nowiki>
curl -H "Content-Type: multipart/form-data" -F "file=@filename"  <nowiki>http://gateway_ip/api/mms_file/file0</nowiki>

Revision as of 07:40, 8 May 2024

POST https://gateway_ip/api/mms_file/file{0..31}

Use HTTP Post to upload a file to the gateway, file name should be file0, file1, ...

Example:

Request: curl -H "Content-Type: multipart/form-data" -F "file=@filename"  http://gateway_ip/api/mms_file/file0