curl -x POST request

curl -H "Content-type: application/json" -X POST -d '{"phoneId":"124nd","data":"data"}' http://xx.sxm.cn/recxxodebxxug/api/vx/jxrtt/getconxtent

The above command plus proxy:

-x 11.25vdv.20ds.1dd:80

 

curl -x ip:80 + URL is equivalent to specifying a domain name in the local hosts file, which has priority access. (curl -x 127.0.0.1:80 This method is suitable for servers in the production environment to test whether you can access it as an agent normal) for the user -x followed by the proxy server.

 

It is also possible to obtain locally unreachable information through the proxy IP

curl -x 82.146.147.112:80 www.google.com -I access through proxy

curl -x 82.146.147.112:80 -o aaa (specified filename) www.google.com -I will download the information locally through the proxy  

 

1.wget

 

wget --post-data="user=user1&pass=pass1&submit=Login"  http://domain.com/path/page_need_login.php  

 

2. curl (you can directly send formatted requests such as json)

Submit json data need to add header, otherwise need 'json={"phone":"13521389587","password":"test"}'

curl -H "Content-type: application/json" -X POST -d '{"phone":"13521389587","password":"test"}' http://domain/apis/users.json

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326484377&siteId=291194637