当前位置:网站首页>One click Copy and import of web interface data into postman
One click Copy and import of web interface data into postman
2022-07-24 07:39:00 【DrMaker】
web One click Copy and import of end interface data postman
background : WEB When the front end and back end are combined , Facing the situation of front and rear end separation development , The back end shall be connected with the front end for joint debugging . The interface provided by the back-end can only be provided externally after being tested , But the front end will always fail to call the same interface for various reasons . At this point, the back-end needs to restore the corresponding front-end request , Abnormal conditions in the back test . But how can we get the request content of the current exception in the front end ? In this case , Make the following minutes .
explain : at present WEB The browser used for end-to-end joint commissioning is Google Chrome. Interface test use Postman To test .
problem : How to get WEB The request content of a given request , Synchronize to Postman Conduct joint commissioning test ?
solve : Google Chrome During debugging , There are interfaces Copy term , Two of them can realize the functions mentioned above
Browser requests data replication
Paste request data ( Example ):
The code is as follows ( Example ):
curl 'http://3.19.153.200:2098/uploadFile/' \
-H 'Accept: application/json, text/javascript, */*; q=0.01' \ -H 'Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-TW;q=0.6' \ -H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryA5kyrZWlH02Cfcl3' \ -H 'Cookie: JSESSIONID=EA377226E393FF1641EA0C5D58C6CC4F' \ -H 'Origin: http://3.19.153.200:2098' \ -H 'Proxy-Connection: keep-alive' \ -H 'Referer: http://3.19.153.200:2098/' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36' \ -H 'X-Requested-With: XMLHttpRequest' \ --data-raw $'------WebKitFormBoundaryA5kyrZWlH02Cfcl3\r\nContent-Disposition: form-data; name="file"; filename="M_tt1520211_The.Walking.Dead_S01_E02_2010_U15_por.srt"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n------WebKitFormBoundaryA5kyrZWlH02Cfcl3\r\nContent-Disposition: form-data; name="folderId"\r\n\r\ninner/\r\n------WebKitFormBoundaryA5kyrZWlH02Cfcl3--\r\n' \ --compressed \ --insecure postman Data import
Import request data to postman( Example ):

It's used here url Data requested by the network , The request data and its format are automatically imported into the interface

边栏推荐
- Selenium basic knowledge debugging method
- [cloud native] MySQL index analysis and query optimization
- Amber tutorial A17 learning - concept
- [introduction to C language] zzulioj 1011-1015
- 中国三氯氢硅市场预测及战略研究报告(2022版)
- Math。 Round, numeric rounding, underlying code parsing
- Requests crawler implements a simple web page collector
- Source code analysis of Nacos configuration center
- Harbor2.2 quick check of user role permissions
- numpy.inf
猜你喜欢

Installation and use of Zen path & defect report & defect operation

Introduction to C language III Array 4. Operators

Jackson parsing JSON detailed tutorial

Problems encountered in inserting large quantities of data into the database in the project

Feature Selective Anchor-Free Module for Single-Shot Object Detection

拉普拉斯(Laplace)分布

sqli-labs简单安装

Requests crawler implements a simple web page collector

Use JMeter to analyze and test the lottery probability of the lottery interface
![[hiflow] Tencent cloud hiflow scene connector realizes intelligent campus information management](/img/a9/7cdab9264902b1e2947a43463f6b32.png)
[hiflow] Tencent cloud hiflow scene connector realizes intelligent campus information management
随机推荐
2022-07-23:给定N件物品,每个物品有重量(w[i])、有价值(v[i]), 只能最多选两件商品,重量不超过bag,返回价值最大能是多少? N <= 10^5, w[i] <= 10^5, v
Using bidirectional linked list to realize stack (c)
Amber tutorial A17 learning - concept
Simple installation of sqli Labs
Introduction to C language I. branch and loop statements
Unable to auto assemble, bean of type "redistemplate" not found
剑指offer专项突击版第8天
[hiflow] Tencent cloud hiflow scene connector realizes intelligent campus information management
【信息系统项目管理师】第七章 复盘成本管理知识架构
There are two tables in Oracle, a and B. these two tables need to be associated with the third table C. how to update the field MJ1 in table a to the value MJ2 in table B
requests-爬虫实现一个简易网页采集器
nacos配置中心源码分析
[leetcode simple] 20. Valid brackets stack
Feature Selective Anchor-Free Module for Single-Shot Object Detection
Deep analysis of data storage in memory
Advanced part 5 of C language. Dynamic memory management
The goal you specified requires a project to execute but there is no POM in this directory
Fopen, fwrite, fseek, fTell, FREAD use demo
Kali安装pip以及pip换源
Advanced part of C language VI. file operation
