全部 ApiPost使用 后端 前端 接口测试 IOS Android 数据库 2022 测试技术 工具
问答 / 问答详情

curl导入失败_firefox生成的curl

后端 48次浏览

我的系统:  mac pro 14inch  pro ,m1 chip
浏览器: firefox dev

浏览器打开调试窗口,右键一键生成curl代码,导入apipost提示curl不正确

测试了POSTMAN导入成功。

这是无法解析curl原文:

curl 'https://mail.engineering.onmail.com/v1/scheduler/compose_send' -X POST -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0' -H 'Accept: */*' -H 'Accept-Language: zh-CN,en-US;q=0.7,en;q=0.3' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' -H 'X-Auth-User: mythicsr@engineering.onmail.com' -H 'Origin: https://mail.engineering.onmail.com' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInNoaWQiOjEsInNpZCI6IjRkMWQ1YmQwLTY4YWUtNDEzNi1iOTI4LTRiY2ZmYzA0MjkwMiIsInR5cCI6IkpXVCIsInVpZCI6MTE3MTEzfQ.eyJhdWQiOiIwIiwiZXhwIjoxNjUxMDI1NjE4LCJpYXQiOjE2NTEwMjQ3MTgsImlzcyI6IlNlY1V0aWxzIiwibmJmIjoxNjUxMDI0NzE4fQ.fnQcZtBB17R2c26o5mihfmwEvK1UyGl23eYt53Bz_Y4' -H 'Referer: https://mail.engineering.onmail.com/u/0/inbox' -H 'Connection: keep-alive' -H 'Cookie: _fbp=fb.1.1650245966933.21913203; __stripe_mid=1ce4f613-f2fd-4817-a548-7f05fa2c4ee3c8fdf1; __cuid=ca1b9653704845a2a574e1fb647e70cf; __stripe_sid=bc6661d2-7e2f-4cd7-8789-5c201c964d560cdada' --data-raw $'{"body":{"cids":[],"html":"<div>\u6808\u589e\u957f<br></div>\\n<div><br></div>\\n<div class=\\"webmail_signature\\"><br>\\n<div style=\\"color: #999999;\\">Sent via <a target=\\"_blank\\" href=\\"https://www.onmail.com?referrer=signature\\" rel=\\"noopener noreferrer\\">OnMail</a><br></div>\\n</div>","draftId":"qdci96t21a8","to":[{"name":"mythicsr@hotmail.com","email":"mythicsr@hotmail.com"}],"cc":[],"bcc":[],"subject":"\u554a\u554a\u554a","from":{"name":"mythicsr mythicsr","email":"mythicsr@engineering.onmail.com"},"attachmentIds":[],"password":"","largeAttachmentFlag":false},"delay":7}'

| 0 收藏
  • san
  • 2022-04-27 提问

1 个回答

辛苦您添加一下QQ:1352772403,我们技术协助您一起排查解决一下。

中文版Postman,rap文档管理

撰写答案

只服务于

前后端、移动端、测试人员

提问题 发布您遇到的Bug和问题,上万名大牛和开发者来帮您解决!