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

【建议】实现解析cURL 自动生成请求

后端 551次浏览

现在前后端调试的时候,一般是这样,将全部请求信息拷贝给后端排查问题:

【建议】实现解析cURL 自动生成请求

拷贝结果如下:

curl 'https://pos.baidu.com/auto_dup?psi=7cf03f05ef56012db7743c2aef67e8c4&di=0&dri=0&dis=0&dai=0&ps=0x0&enu=encoding&exps=110011&ant=0&dcb=___baidu_union_callback&dtm=AUTO_JSONP&dvi=0.0&dci=-1&dpt=none&tsr=0&tpr=1594179503737&ti=ApiPost%E9%97%AE%E7%AD%94-%E9%92%88%E5%AF%B9%E5%90%8E%E7%AB%AF%E5%BC%80%E5%8F%91%E3%80%81%E5%89%8D%E7%AB%AF%E3%80%81%E6%B5%8B%E8%AF%95%E4%BA%BA%E5%91%98%E7%9A%84%E9%97%AE%E7%AD%94%E3%80%81%E5%AD%A6%E4%B9%A0%E4%B8%8E%E4%BA%A4%E6%B5%81%E5%B9%B3%E5%8F%B0&ari=2&ver=0702&dbv=2&drs=3&pcs=1680x531&pss=1680x2969&cfv=0&cpl=3&chi=1&cce=true&cec=UTF-8&tlm=1594179503&prot=2&rw=531&ltu=https%3A%2F%2Fqa.apipost.cn%2F&ecd=1&uc=1680x1050&pis=-1x-1&sr=1680x1050&tcn=1594179504&dc=4' \

  -H 'Connection: keep-alive' \

  -H 'Pragma: no-cache' \

  -H 'Cache-Control: no-cache' \

  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36' \

  -H 'Accept: */*' \

  -H 'Sec-Fetch-Site: cross-site' \

  -H 'Sec-Fetch-Mode: no-cors' \

  -H 'Sec-Fetch-Dest: script' \

  -H 'Referer: https://qa.apipost.cn/' \

  -H 'Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7' \

  -H 'Cookie: BAIDUID=2B63BF3CABCE42524DF7E8EEFFE689D3:FG=1; BIDUPSID=2B63BF3CABCE42524DF7E8EEFFE689D3; PSTM=1571238058; CPROID=2B63BF3CABCE42524DF7E8EEFFE689D3:FG=1; __cfduid=d0c4ec1ee2a895a57bcd66ae035d805191572683817; H_WISE_SIDS=136721_132921_134724_137841_128065_136944_135846_137971_120148_138489_137380_137495_133995_137985_132911_137690_131246_132551_137749_131517_118897_118877_118840_118827_118804_136688_107312_137174_136430_137735_133351_137900_136863_138146_138114_136195_137105_133847_138478_138343_137468_134256_131423_137738_136537_138179_110085_138549_127969_138128_137912_137829_138152_128196_136636_138425_138563_138318; BDORZ=FFFB88E999055A3F8A630C64834BD6D0; MCITY=-179%3A; BDUSS=RrUnZGYU1GQVBTSTVmVEdZUi1iakFGVUNsVDJuR0dQcjhFVS1KZzhXLTFIQ1ZmSVFBQUFBJCQAAAAAAAAAAAEAAAAB3gEp0MR3cmVja2FnZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALWP~V61j~1eal; H_PS_PSSID=; delPer=0; PSINO=5; ZD_ENTRY=baidu; session_id=1594035198331; session_name=www.baidu.com; BDRCVFR[VXHUG3ZuJnT]=mk3SLVN4HKm; __yjsv5_shitong=1.0_7_5ffd6d21cfdac70f99e48144c58c70b05c5d_300_1594174688256_115.236.91.18_ef0717dc; yjs_js_security_passport=ac4c5a60ab454b7604a349d473f9cad649f50b31_1594174688_js' \

  --compressed


希望能够根据这个串,直接生成请求。

| 1 收藏

4 个回答

收到,后续版本改进

你们要不再开一个【反馈&建议】的标签?

感觉他们就不会支持curl~~~不支持导出~~~更不会支持导入

19年提的curl导出~~都要2021年了~~~还没有,我天

这个功能很需要,顶下

  • Wisin
  • 2021-06-25 回答
Apipost 私有化火热进行中

撰写答案

只服务于

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

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