---- transmission curl get / post request

 curl Introduction

curl is a URL using the language law in the command line getting off work as a file transfer tool that supports file uploads and downloads, to request the Web server. curl supports communication protocols are ftp, ftps, http, https, tftp, pop3, scp and so on.

Postman may also be used for the front and rear end of the interface joint debugging and testing. postman's official website Download: https://www.getpostman.com/

postman Instructions : https://blog.csdn.net/fxbin123/article/details/80428216

Use curl

get request: [curl http: //192.168.***.**:? 8080 / login data]

图中post请求参数解释如下:

-HAdd the parameter header of the HTTP request is Content-Type: application / json

-XThe method of HTTP parameter specifies the request is POST

--Data data volume (or -d) for sending a POST request parameters

curl details see Ruan Yifeng website : http://www.ruanyifeng.com/blog/2019/09/curl-reference.html

 

 

 
Published 147 original articles · won praise 33 · views 30000 +

Guess you like

Origin blog.csdn.net/maidu_xbd/article/details/103368647