-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest.js
22 lines (19 loc) · 1.12 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var axios = require('axios');
var addr = 'http://wwwbaiducom13.cn/[email protected]&sign=fcbd24464d';
var pass = '同学,你能接收到我发过来的吗?';
axios.defaults.headers.post['Accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8';
axios.defaults.headers.post['Accept-Encoding'] = 'gzip, deflate';
axios.defaults.headers.post['Accept-Language'] = 'zh-CN,zh;q=0.8,en;q=0.6,zh-TW;q=0.4';
axios.defaults.headers.post['Cache-Control'] = 'max-age=0';
axios.defaults.headers.post['Connection'] = 'keep-alive';
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.headers.post['Cookie'] = '__cfduid=d743820ab42823dd7eb297d72e3bd97971498545584';
axios.defaults.headers.post['Upgrade-Insecure-Requests'] = 'Upgrade-Insecure-Requests';
axios.defaults.headers.post['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36';
axios.post(addr,{
email:'[email protected]',
submit:'确认上述信息有误',
pass: pass
}).then(function (response) {
console.log(response);
});