sscom串口网络数据调试器使用post方法向华为云obs桶上传文件和图片

网友投稿 5811 2022-05-30

sscom串口网络数据调试器使用post方法向华为云obs桶上传文件和图片

一句话总结:之前发了文章“postman使用post方法向华为云obs桶上传文件和图片”,好多人后台留言,问sscom串口/网络调试助手怎么上传文件和图片?仅验证下过程。

如果想了解put方法,请参考下文:

postman使用put方法向华为云obs桶上传文件和图片

https://bbs.huaweicloud.com/blogs/298147

如果想了解post方法,请参考下文:

postman使用post方法向华为云obs桶上传文件和图片

https://bbs.huaweicloud.com/blogs/298183

1、 使用步骤

创建华为云OBS桶

1、 什么是华为云OBS?

对象存储服务(Object Storage Service)是一款稳定、安全、高效、易用的华为云存储服务,具备标准Restful API接口,可存储任意数量和形式的非结构化数据。

2、进入华为云的OBS服务,进入“管理控制台”。点击“创建桶”。

3、取个桶名字bucket-guxiaobei。

4、OBS桶创建成功。

5、点击桶名,可以查看OBS基本信息。可以看到我的OBS桶访问域名bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com

获取AK和SK

1、华为云OBS支持通过AK/SK认证方式进行认证鉴权,即使用Access Key ID(AK)/Secret Access Key(SK)加密的方法来验证某个请求发送者身份。

支持2种使用AK/SK的鉴权方法:

(1)支持使用永久AK/SK鉴权。

(2)支持通过临时AK/SK和securitytoken进行认证鉴权。

2、本文使用永久AK/SK。点击华为云用户名下的“我的凭证”。

(2)新增访问秘钥。

(3)创建成功后,点立即下载。

(4)打开excel文件,即可看到用户名下对应的AK/SK。

操作前

(1)本文先使用postman的post方法,向华为云obs上传文件和图片。

所以,务必先完成下面这篇文章。

postman使用post方法向华为云obs桶上传文件和图片

https://bbs.huaweicloud.com/blogs/298183

(2)使用Fiddler.exe 抓包postman的报文。

(3)把Fiddler抓到的报文,使用sscom软件再发一遍。本文只是验证sscom可以成功上传,不深究http协议内容。

上传txt文档

1、准备一个1.txt文档。内容随意。

2、在pycharm里运行,可以得到policy和signature。

(1)sk为你实际Secret Access Key内容。

(2)expiration为过期时间。

(3)bucket为你的桶名。

(4)key为期望上传对象的名字。

3、打开postman软件,选择POST方法。

(1)地址栏填入http:// 访问域名 / 。我写的是http://bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com/

(2)其他Headers参考下图。

注意:postman有一些自动生成的头信息auto-generated headers,并不都是必须项。

4、点击“Body”。类型选form-data。Select File,选择前面准备好的a.txt

(1)key为期望上传对象的名字。

(2)AccessKeyId是我的Access Key Id值。

(3)signature是刚计算出来的签名。

(4)policy是刚计算出来的策略。

(5)file是实际上传的文件。约束条件:此参数必须为最后一个参数,否则此参数之后的参数会被丢弃;一个请求中只能含有一个file参数。

5、打开fiddler.exe软件。准备监听http报文。

6、postman点击send,返回状态Status 204 No Content。

查看code snippet,可以查看http的协议报文(这个报文只是一个示例,并不能直接使用。真实报文通过fiddler可以看到)。

7、返回华为云OBS控制台。可以看到1.txt已经上传。点击下载。

8、完成txt上传。

注意:OBS并不强制本地文件名和OBS桶的期待文件名,保持一致。你可以本地a.txt,上传为b.txt。

9、此时fiddler已经抓到postman的报文。左侧Host选择bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com

10、在fiddler的十六进制视图中,全选后,直接复制Ctrl+C。

POST http://bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com/ HTTP/1.1

Cache-Control: no-cache

Postman-Token: a004e567-a64d-4bee-af74-296700ad0889

Host: bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com

Content-Type: multipart/form-data; boundary=--------------------------438620743472451047270945

Content-Length: 882

----------------------------438620743472451047270945

Content-Disposition: form-data; name="key"

1.txt

----------------------------438620743472451047270945

Content-Disposition: form-data; name="AccessKeyId"

LAPWJKLEAEG7FDPEIJR7

----------------------------438620743472451047270945

Content-Disposition: form-data; name="signature"

cHlcAeQFCAOyrjPow2dRiK3+kPg=

----------------------------438620743472451047270945

Content-Disposition: form-data; name="policy"

eyJleHBpcmF0aW9uIjogIjIwMjEtMDktMThUMTI6MDA6MDAuMDAwWiIsCiAgICAiY29uZGl0aW9ucyI6WwogICAgICAgIHsiYnVja2V0IjoiYnVja2V0LWd1eGlhb2JlaSJ9LAogICAgICAgIHsia2V5IjoiMS50eHQifQogICAgXQogICAgfQ==

----------------------------438620743472451047270945

Content-Disposition: form-data; name="file"; filename="1.txt"

Content-Type: text/plain

1234567890abcdefg

----------------------------438620743472451047270945--

11、打开sscom软件。

(1)远程地址,填上bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com

(2)发送框填写上面复制的fiddler真实http报文。

12、华为云obs先删除已经上传的文件。

13、sscom先点连接。然后点发送。华为云obs返回204 No Content。

14、查看华为云obs,发现sscom也成功上传了1.txt文件。

上传jpg图片

1、准备一个1.jpg图片。内容随意。

2、在pycharm里运行,可以得到policy和signature。

(1)sk为你实际Secret Access Key内容。

(2)expiration为过期时间。

(3)bucket为你的桶名。

(4)key为期望上传对象的名字。

3、打开postman软件,选择POST方法。

(1)地址栏填入http:// 访问域名 / 。我写的是http://bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com/

(2)其他Headers参考下图。

注意:postman有一些自动生成的头信息auto-generated headers,并不都是必须项。

4、点击“Body”。类型选form-data。Select File,选择前面准备好的b.jpg

(1)key为期望上传对象的名字。

(2)AccessKeyId是我的Access Key Id值。

(3)signature是刚计算出来的签名。

(4)policy是刚计算出来的策略。

(5)file是实际上传的文件。约束条件:此参数必须为最后一个参数,否则此参数之后的参数会被丢弃;一个请求中只能含有一个file参数。

5、打开fiddler.exe软件。准备监听http报文。

6、postman点击send,返回状态Status 204 No Content。

查看code snippet,可以查看http的协议报文(这个报文只是一个示例,并不能只能使用。真实报文通过fiddler可以看到)。

7、返回华为云OBS控制台。可以看到1.png已经上传。点击下载。

8、完成图片上传。

注意:OBS并不强制本地文件名和OBS桶的期待文件名,保持一致。你可以本地a.png,上传为b.png。

9、此时fiddler已经抓到postman的报文。左侧Host选择bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com

10、在fiddler的十六进制视图中,全选后,复制为0x##(原因是png和jpg等图片文件,直接复制乱码发送,会出现报错)。

直接复制Ctrl+C乱码,出现报错情况:

HTTP/1.1 503 Service Unavailable

Server: OBS

Connection: close

x-reserved-indicator: 1

x-obs-request-id: 0000017BDE1D603D62CBC4CFA793A350

x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSsxayRC0RHQoYie0g5t74Yw6I4UVIcX

Content-Type: application/xml

Date: Mon, 13 Sep 2021 07:44:32 GMT

Content-Length: 0

sscom串口网络数据调试器使用post方法向华为云obs桶上传文件和图片

ServiceUnavailablePlease reduce your request rate.0000017BDE1D603D62CBC4CFA793A350UCYZxtA0l02Suyb4jex5NCahVniI4LPr0GdRkHLTGK1jRLt3ogG4wmjl8iKZjHuO

复制为0x##,内容如下:

byte[] arrOutput = { 0x50, 0x4F, 0x53, 0x54, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3A, 0x2F, 0x2F, 0x62, 0x75, 0x63, 0x6B, 0x65, 0x74, 0x2D, 0x67, 0x75, 0x78, 0x69, 0x61, 0x6F, 0x62, 0x65, 0x69, 0x2E, 0x6F, 0x62, 0x73, 0x2E, 0x63, 0x6E, 0x2D, 0x6E, 0x6F, 0x72, 0x74, 0x68, 0x2D, 0x34, 0x2E, 0x6D, 0x79, 0x68, 0x75, 0x61, 0x77, 0x65, 0x69, 0x63, 0x6C, 0x6F, 0x75, 0x64, 0x2E, 0x63, 0x6F, 0x6D, 0x2F, 0x20, 0x48, 0x54, 0x54, 0x50, 0x2F, 0x31, 0x2E, 0x31, 0x0D, 0x0A, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2D, 0x43, 0x6F, 0x6E, 0x74, 0x72, 0x6F, 0x6C, 0x3A, 0x20, 0x6E, 0x6F, 0x2D, 0x63, 0x61, 0x63, 0x68, 0x65, 0x0D, 0x0A, 0x50, 0x6F, 0x73, 0x74, 0x6D, 0x61, 0x6E, 0x2D, 0x54, 0x6F, 0x6B, 0x65, 0x6E, 0x3A, 0x20, 0x63, 0x36, 0x38, 0x66, 0x32, 0x65, 0x39, 0x63, 0x2D, 0x36, 0x30, 0x62, 0x34, 0x2D, 0x34, 0x66, 0x61, 0x38, 0x2D, 0x38, 0x66, 0x34, 0x32, 0x2D, 0x33, 0x30, 0x32, 0x30, 0x30, 0x66, 0x32, 0x61, 0x39, 0x32, 0x37, 0x31, 0x0D, 0x0A, 0x48, 0x6F, 0x73, 0x74, 0x3A, 0x20, 0x62, 0x75, 0x63, 0x6B, 0x65, 0x74, 0x2D, 0x67, 0x75, 0x78, 0x69, 0x61, 0x6F, 0x62, 0x65, 0x69, 0x2E, 0x6F, 0x62, 0x73, 0x2E, 0x63, 0x6E, 0x2D, 0x6E, 0x6F, 0x72, 0x74, 0x68, 0x2D, 0x34, 0x2E, 0x6D, 0x79, 0x68, 0x75, 0x61, 0x77, 0x65, 0x69, 0x63, 0x6C, 0x6F, 0x75, 0x64, 0x2E, 0x63, 0x6F, 0x6D, 0x0D, 0x0A, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x2D, 0x54, 0x79, 0x70, 0x65, 0x3A, 0x20, 0x6D, 0x75, 0x6C, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x2F, 0x66, 0x6F, 0x72, 0x6D, 0x2D, 0x64, 0x61, 0x74, 0x61, 0x3B, 0x20, 0x62, 0x6F, 0x75, 0x6E, 0x64, 0x61, 0x72, 0x79, 0x3D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x37, 0x30, 0x38, 0x36, 0x39, 0x31, 0x33, 0x30, 0x35, 0x35, 0x37, 0x34, 0x33, 0x33, 0x30, 0x34, 0x31, 0x34, 0x31, 0x37, 0x30, 0x31, 0x30, 0x35, 0x0D, 0x0A, 0x43, 0x6F, 0x6E, 0x74,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, 0x6E, 0x74, 0x2D, 0x44, 0x69, 0x73, 0x70, 0x6F, 0x73, 0x69, 0x74, 0x69, 0x6F, 0x6E, 0x3A, 0x20, 0x66, 0x6F, 0x72, 0x6D, 0x2D, 0x64, 0x61, 0x74, 0x61, 0x3B, 0x20, 0x6E, 0x61, 0x6D, 0x65, 0x3D, 0x22, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4B, 0x65, 0x79, 0x49, 0x64, 0x22, 0x0D, 0x0A, 0x0D, 0x0A, 0x4C, 0x41, 0x50, 0x57, 0x4A, 0x4B, 0x4C, 0x45, 0x41, 0x45, 0x47, 0x37, 0x46, 0x44, 0x50, 0x45, 0x49, 0x4A, 0x52, 0x37, 0x0D, 0x0A, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x37, 0x30, 0x38, 0x36, 0x39, 0x31, 0x33, 0x30, 0x35, 0x35, 0x37, 0x34, 0x33, 0x33, 0x30, 0x34, 0x31, 0x34, 0x31, 0x37, 0x30, 0x31, 0x30, 0x35, 0x0D, 0x0A, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x2D, 0x44, 0x69, 0x73, 0x70, 0x6F, 0x73, 0x69, 0x74, 0x69, 0x6F, 0x6E, 0x3A, 0x20, 0x66, 0x6F, 0x72, 0x6D, 0x2D, 0x64, 0x61, 0x74, 0x61, 0x3B, 0x20, 0x6E, 0x61, 0x6D, 0x65, 0x3D, 0x22, 0x73, 0x69, 0x67, 0x6E, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x0D, 0x0A, 0x0D, 0x0A, 0x4F, 0x49, 0x47, 0x6E, 0x7A, 0x77, 0x57, 0x69, 0x47, 0x66, 0x62, 0x35, 0x33, 0x61, 0x6E, 0x6B, 0x70, 0x6A, 0x43, 0x4A, 0x6C, 0x4A, 0x79, 0x41, 0x61, 0x64, 0x59, 0x3D, 0x0D, 0x0A, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x37, 0x30, 0x38, 0x36, 0x39, 0x31, 0x33, 0x30, 0x35, 0x35, 0x37, 0x34, 0x33, 0x33, 0x30, 0x34, 0x31, 0x34, 0x31, 0x37, 0x30, 0x31, 0x30, 0x35, 0x0D, 0x0A, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x2D, 0x44, 0x69, 0x73, 0x70, 0x6F, 0x73, 0x69, 0x74, 0x69, 0x6F, 0x6E, 0x3A, 0x20, 0x66, 0x6F, 0x72, 0x6D, 0x2D, 0x64, 0x61, 0x74, 0x61, 0x3B, 0x20, 0x6E, 0x61, 0x6D, 0x65, 0x3D, 0x22, 0x70, 0x6F, 0x6C, 0x69, 0x63, 0x79, 0x22, 0x0D, 0x0A, 0x0D, 0x0A, 0x65, 0x79, 0x4A, 0x6C, 0x65, 0x48, 0x42, 0x70, 0x63, 0x6D, 0x46, 0x30, 0x61, 0x57, 0x39, 0x75, 0x49, 0x6A, 0x6F, 0x67, 0x49, 0x6A, 0x49, 0x77, 0x4D, 0x6A, 0x45, 0x74, 0x4D, 0x44, 0x6B, 0x74, 0x4D, 0x54, 0x68, 0x55, 0x4D, 0x54, 0x49, 0x36, 0x4D, 0x44, 0x41, 0x36, 0x4D, 0x44, 0x41, 0x75, 0x4D, 0x44, 0x41, 0x77, 0x57, 0x69, 0x49, 0x73, 0x43, 0x69, 0x41, 0x67, 0x49, 0x43, 0x41, 0x69, 0x59, 0x32, 0x39, 0x75, 0x5A, 0x47, 0x6C, 0x30, 0x61, 0x57, 0x39, 0x75, 0x63, 0x79, 0x49, 0x36, 0x57, 0x77, 0x6F, 0x67, 0x49, 0x43, 0x41, 0x67, 0x49, 0x43, 0x41, 0x67, 0x49, 0x48, 0x73, 0x69, 0x59, 0x6E, 0x56, 0x6A, 0x61, 0x32, 0x56, 0x30, 0x49, 0x6A, 0x6F, 0x69, 0x59, 0x6E, 0x56, 0x6A, 0x61, 0x32, 0x56, 0x30, 0x4C, 0x57, 0x64, 0x31, 0x65, 0x47, 0x6C, 0x68, 0x62, 0x32, 0x4A, 0x6C, 0x61, 0x53, 0x4A, 0x39, 0x4C, 0x41, 0x6F, 0x67, 0x49, 0x43, 0x41, 0x67, 0x49, 0x43, 0x41, 0x67, 0x49, 0x48, 0x73, 0x69, 0x61, 0x32, 0x56, 0x35, 0x49, 0x6A, 0x6F, 0x69, 0x4D, 0x53, 0x35, 0x77, 0x62, 0x6D, 0x63, 0x69, 0x66, 0x51, 0x6F, 0x67, 0x49, 0x43, 0x41, 0x67, 0x58, 0x51, 0x6F, 0x67, 0x49, 0x43, 0x41, 0x67, 0x66, 0x51, 0x3D, 0x3D, 0x0D, 0x0A, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x37, 0x30, 0x38, 0x36, 0x39, 0x31, 0x33, 0x30, 0x35, 0x35, 0x37, 0x34, 0x33, 0x33, 0x30, 0x34, 0x31, 0x34, 0x31, 0x37, 0x30, 0x31, 0x30, 0x35, 0x0D, 0x0A, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x2D, 0x44, 0x69, 0x73, 0x70, 0x6F, 0x73, 0x69, 0x74, 0x69, 0x6F, 0x6E, 0x3A, 0x20, 0x66, 0x6F, 0x72, 0x6D, 0x2D, 0x64, 0x61, 0x74, 0x61, 0x3B, 0x20, 0x6E, 0x61, 0x6D, 0x65, 0x3D, 0x22, 0x66, 0x69, 0x6C, 0x65, 0x22, 0x3B, 0x20, 0x66, 0x69, 0x6C, 0x65, 0x6E, 0x61, 0x6D, 0x65, 0x3D, 0x22, 0x31, 0x2E, 0x70, 0x6E, 0x67, 0x22, 0x0D, 0x0A, 0x43, 0x6F, 0x6E, 0x74, 0x65, 0x6E, 0x74, 0x2D, 0x54, 0x79, 0x70, 0x65, 0x3A, 0x20, 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x70, 0x6E, 0x67, 0x0D, 0x0A, 0x0D, 0x0A, 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x38, 0x08, 0x02, 0x00, 0x00, 0x00, 0x8D, 0x27, 0x6A, 0xF5, 0x00, 0x00, 0x00, 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xAE, 0xCE, 0x1C, 0xE9, 0x00, 0x00, 0x00, 0x04, 0x67, 0x41, 0x4D, 0x41, 0x00, 0x00, 0xB1, 0x8F, 0x0B, 0xFC, 0x61, 0x05, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0E, 0xC3, 0x00, 0x00, 0x0E, 0xC3, 0x01, 0xC7, 0x6F, 0xA8, 0x64, 0x00, 0x00, 0x02, 0x36, 0x49, 0x44, 0x41, 0x54, 0x78, 0x5E, 0xED, 0x98, 0x51, 0x9A, 0x83, 0x20, 0x0C, 0x84, 0x39, 0x97, 0x07, 0xF2, 0x3C, 0x9E, 0xA6, 0x97, 0xF1, 0x30, 0x5D, 0x05, 0xB4, 0x62, 0x26, 0x01, 0x37, 0x6A, 0xBF, 0xB6, 0xD3,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D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x37, 0x30, 0x38, 0x36, 0x39, 0x31, 0x33, 0x30, 0x35, 0x35, 0x37, 0x34, 0x33, 0x33, 0x30, 0x34, 0x31, 0x34, 0x31, 0x37, 0x30, 0x31, 0x30, 0x35, 0x2D, 0x2D, 0x0D, 0x0A };

11、整理为纯16进制内容,如下:

504F535420687474703A2F2F6275636B65742D67757869616F6265692E6F62732E636E2D6E6F7274682D342E6D79687561776569636C6F75642E636F6D2F20485454502F312E310D0A43616368652D436F6E74726F6C3A206E6F2D63616368650D0A506F73746D616E2D546F6B656E3A2063363866326539632D363062342D346661382D386634322D3330323030663261393237310D0A486F73743A206275636B65742D67757869616F6265692E6F62732E636E2D6E6F7274682D342E6D79687561776569636C6F75642E636F6D0D0A436F6E74656E742D547970653A206D756C7469706172742F666F726D2D646174613B20626F756E646172793D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D3730383639313330353537343333303431343137303130350D0A436F6E74656E742D4C656E6774683A20313533370D0A0D0A2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D3730383639313330353537343333303431343137303130350D0A436F6E74656E742D446973706F736974696F6E3A20666F726D2D646174613B206E616D653D226B6579220D0A0D0A312E706E670D0A2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D3730383639313330353537343333303431343137303130350D0A436F6E74656E742D446973706F736974696F6E3A20666F726D2D646174613B206E616D653D224163636573734B65794964220D0A0D0A4C4150574A4B4C454145473746445045494A52370D0A2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D3730383639313330353537343333303431343137303130350D0A436F6E74656E742D446973706F736974696F6E3A20666F726D2D646174613B206E616D653D227369676E6174757265220D0A0D0A4F49476E7A7757694766623533616E6B706A434A6C4A79416164593D0D0A2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D3730383639313330353537343333303431343137303130350D0A436F6E74656E742D446973706F736974696F6E3A20666F726D2D646174613B206E616D653D22706F6C696379220D0A0D0A65794A6C65484270636D463061573975496A6F67496A49774D6A45744D446B744D5468554D5449364D4441364D4441754D444177576949734369416749434169593239755A476C30615739756379493657776F67494341674943416749487369596E566A61325630496A6F69596E566A613256304C57643165476C6862324A6C61534A394C416F6749434167494341674948736961325635496A6F694D533577626D636966516F674943416758516F674943416766513D3D0D0A2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D3730383639313330353537343333303431343137303130350D0A436F6E74656E742D446973706F736974696F6E3A20666F726D2D646174613B206E616D653D2266696C65223B2066696C656E616D653D22312E706E67220D0A436F6E74656E742D547970653A20696D6167652F706E670D0A0D0A89504E470D0A1A0A0000000D49484452000000600000003808020000008D276AF5000000017352474200AECE1CE90000000467414D410000B18F0BFC6105000000097048597300000EC300000EC301C76FA8640000023649444154785EED98519A83200C84399707F23C9EA697F1305D05B4622601376ABFB6D34757107E263361C3933F9340201F9B00015514424004E433112A880AA2827C04A8201F3F7A10154405F90850413E7EF4202A880AF211A0827CFCE841541015E423F03E058D431742378C62058F3E84D03F2EDDD769935FE8411AA0F8FC389F38ECF0B8F9308A433A7A3AF70352855539F45F01F45F3ECFEF001405ACFEA6BA325E4076B551D57700DA9609D04ADA64414277A49D7DEC00CD7F6D30B2CFF2A0453EDB8D891D64C64230E58334554574D3540D80ECD0B8D1A4537EF465AC68AB93F2DB13036A04365F0194384F07368EB21D89D3DD0728D7C48E8822A0B8F0521FD283D6DDAD60B0C3E19897A3618CDE0768F97CD188E0AE04FA3178981E99568415541BB541753AA0BC689964ABF16CA0603E403ED38A21B5AA15357890DD7F5D0368679EA0AC62DDC3DE588B73EB6D5D441F092835435D27227F3E4B2C1F4D41CB0035CF3E1350D60E8869158F526233D25CD438F29B00593DD53B4A6CDD9320348E43AF958BD149C70D0E30A85B00993DFA3B00E5801DEA19241AF396E6390F7A457EED366F5E0FAF01846E6329C5F2B273A435E4F4CAA8F12EB6A6E8EB7B3540384BF387AF01A4FB816C5B4A647AE61AF6B40C0252102526DFB1273E1D90B64373198A3AF68D71FDEA25BE8E3A75D96F1BB7DEDB009DF63FD0631321408766F876408760A09709A882908008C857655410154405F90850413E7EF4202A880AF211A0827CFCE841541015E4234005F9F8FD01036E802D32C537250000000049454E44AE4260820D0A2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D3730383639313330353537343333303431343137303130352D2D0D0A

12、打开sscom软件。

(1)远程地址,填上bucket-guxiaobei.obs.cn-north-4.myhuaweicloud.com

(2)选择HEX发送。

(2)发送框填写fiddler真实http报文的16进制内容。

13、华为云obs先删除已经上传的文件。

14、sscom先点连接。然后点发送。华为云obs返回204 No Content。

15、查看华为云obs,发现sscom也成功上传了1.png文件。

完成

ok。

关注

weixin关注公众号beigugong,或者扫描下方二维码。

相关

【上电即上华为云】故小北文章阶段性汇总

https://bbs.huaweicloud.com/blogs/263697

【上电即上华为云】华为云openCPU智联模组_Cat.1_MC615-CN-L610-CN(面向上华为云)

https://bbs.huaweicloud.com/blogs/267413

【上电即上华为云】华为云openCPU智联模组_Cat.1_MC615-CN_L610-CN_OTA升级(面向OTA在线升级)

https://bbs.huaweicloud.com/blogs/293310

【上电即上华为云】华为云smart智联Cat.1+PLC无线网关_3121N-IED_MC615-CN-L610-CN(面向Cat.1+PLC无线网关)

https://bbs.huaweicloud.com/blogs/296169

【上电即上华为云】华为云openCPU智联模组_Cat.1_MC615-CN-L610-CN_云喇叭TTS语音

https://bbs.huaweicloud.com/blogs/296429

【上电即上华为云】华为云openCPU智联模组_Cat.1_MC615-CN-L610-CN_GPS定位器

https://bbs.huaweicloud.com/blogs/297178

postman使用put方法向华为云obs桶上传文件和图片

https://bbs.huaweicloud.com/blogs/298147

postman使用post方法向华为云obs桶上传文件和图片

https://bbs.huaweicloud.com/blogs/298183

【上电即上华为云】华为云openCPU智联模组_Cat.1_MC615-CN-L610-CN_环境温湿度(GXHT30传感器)

https://bbs.huaweicloud.com/blogs/300123

sscom串口网络数据调试器使用post方法向华为云obs桶上传文件和图片

本帖地址

对象存储服务 OBS 网络

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:云计算的可信新边界:边缘计算与协同未来(下)(云计算,边缘计算)
下一篇:华为云开发者沙龙—广州站之不负好时光(华为云 广州)
相关文章