当前位置:网站首页>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

边栏推荐
- oracle中有A,B连个表,这两个表需要第三个表C关联,那怎么将A表中的字段MJ1更新为B表中MJ2的值
- Write three piece chess in C language
- Selenium basic knowledge automatic search
- Influxdb unauthorized access & CouchDB permission bypass
- Advanced part of C language I. data storage
- 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
- JS_ Realize the separation of multiple lines of text into an array according to the newline
- Harbor2.2 用户角色权限速查
- 【信息系统项目管理师】第七章 复盘成本管理知识架构
- sqli-labs简单安装
猜你喜欢

深度学习二三事-回顾那些经典卷积神经网络

Requests crawl page source code data

XSS vulnerability learning

DOM operation of JS -- style operation

系统集成项目管理工程师(软考中级)重点知识、背诵版

Harbor2.2 quick check of user role permissions

The shortest distance of Y axis of 2D plane polyline

My creation anniversary

Deep analysis of data storage in memory

Introduction to C language III Array 4. Operators
随机推荐
From the perspective of CIA, common network attacks (blasting, PE, traffic attacks)
DOM operation of JS -- style operation
[FreeRTOS] 11 software timer
服务漏洞&FTP&RDP&SSH&rsync
Arduino在不同主频下稳定支持的TTL串口速率
Reptile learning - Overview
UNI-APP_ Playback and pause of background music of applet or H5 page
MySQL queries all parents of the current node
oracle中有A,B连个表,这两个表需要第三个表C关联,那怎么将A表中的字段MJ1更新为B表中MJ2的值
拉普拉斯(Laplace)分布
Injectfix principle learning (to realize the heat of repair addition)
Give a string ① please count the number of times each letter appears ② please print the pair with the most letters
System integration project management engineer (soft test intermediate) key knowledge, recitation version
Seminar 2022.07.22 -- Comparative learning
CSDN, it's time to say goodbye!
游戏三子棋
numpy.concatenate
Selenium basic knowledge debugging method
Jackson 解析 JSON 详细教程
【Pytorch】Dataset_ DataLoader
