Skip to content

Commit 5f974dc

Browse files
author
caofanCPU
committed
support concurrent request, but somewhere has bug in httpie util.
1 parent d45f768 commit 5f974dc

File tree

5 files changed

+11
-59
lines changed

5 files changed

+11
-59
lines changed

auto/ID.csv

Lines changed: 5 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,5 @@
1-
1
2-
2
3-
3
4-
4
5-
5
6-
6
7-
7
8-
8
9-
9
10-
10
11-
11
12-
12
13-
13
14-
14
15-
15
16-
16
17-
17
18-
18
19-
19
20-
20
21-
21
22-
22
23-
23
24-
24
25-
25
26-
26
27-
27
28-
28
29-
29
30-
30
31-
31
32-
32
33-
33
34-
34
35-
35
36-
36
37-
37
38-
38
39-
39
40-
40
41-
41
42-
42
43-
43
44-
44
45-
45
46-
47-
48-
49-
50-
51-
52-
53-
1+
10236667
2+
10236640
3+
10236754
4+
10236803
5+
10236788

auto/batchHandler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,12 @@ def httpie_cmd(id):
6363
httpie_params.append(httpie_view)
6464
httpie_params.extend([method, url, headers, body])
6565
httpie = joiner.join(httpie_params)
66-
# print(httpie)
6766
executeStartTime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')
6867
# 延时执行
6968
# time.sleep(0.05)
7069
subprocess.call(httpie, shell=True)
7170
executeEndTime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')
72-
return "当前[ID={}, [executeStartTime={}], [executeEndTime={}]".format(id, executeStartTime, executeEndTime)
71+
return "执行命令\n{}\n当前[ID={}], [executeStartTime={}], [executeEndTime={}]".format(httpie, id, executeStartTime, executeEndTime)
7372

7473

7574
def load_request_headers(headers, hot_reload):

auto/cookie.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'Cookie:_r=ihJwwY0cYz49sr6PMLsFz0BZpRyQxkFQfqtQSrOxQNgjrbvfiad33YRFMbWVOFY7|Bt4XvnwQD0g=; Max-Age=2592000; Expires=Sat, 16-May-2020 18:27:59 GMT; Domain=testa.huitong.com; Path=/; HttpOnly, _a=HUQD4RRBySY9sr6PMLsFz0BZpRyQxkFQfqtQSrOxQNgjrbvfiad33aJ+8ZAs65Qj55U6X+1Po31adyYgUMNqH1vXuurqEFhH|2huAgBlVNhQ=; Max-Age=7200; Expires=Thu, 16-Apr-2020 20:27:59 GMT; Domain=emp.testa.huitong.com; Path=/; HttpOnly, _a=HUQD4RRBySY9sr6PMLsFz0BZpRyQxkFQfqtQSrOxQNgjrbvfiad33aJ+8ZAs65Qj55U6X+1Po31adyYgUMNqH1vXuurqEFhH|2huAgBlVNhQ=; Max-Age=7200; Expires=Thu, 16-Apr-2020 20:27:59 GMT; Domain=emp2.testa.huitong.com; Path=/; HttpOnly'
1+
'Cookie:_r=ihJwwY0cYz54tjLhxFPCyHcTtrpOrgktLqAVgNx6smoIhi4pMWXO/6u8c1HnNa22|90UXwxY97IQ=; Max-Age=2592000; Expires=Sun, 17-May-2020 07:03:06 GMT; Domain=testx.huitong.com; Path=/; HttpOnly, _a=HUQD4RRBySZ4tjLhxFPCyHcTtrpOrgktLqAVgNx6smoIhi4pMWXO/4JyzqKMi9Ew83RbpMpk4L0yD6iaJdwllriOgDMG7IM7|f7tlwQnthVw=; Max-Age=7200; Expires=Fri, 17-Apr-2020 09:03:06 GMT; Domain=emp.testx.huitong.com; Path=/; HttpOnly, _a=HUQD4RRBySZ4tjLhxFPCyHcTtrpOrgktLqAVgNx6smoIhi4pMWXO/4JyzqKMi9Ew83RbpMpk4L0yD6iaJdwllriOgDMG7IM7|f7tlwQnthVw=; Max-Age=7200; Expires=Fri, 17-Apr-2020 09:03:06 GMT; Domain=emp2.testx.huitong.com; Path=/; HttpOnly'

auto/excuteUrl.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"url": "http://localhost:8127/ruok",
2+
"url": "https://live.testx.huitong.com/api/v100/live/employee/upload/dibblingVideo/addCategory",
33
"method": "POST",
44
"headers" : [
55
"Content-Type:application/json",
66
"HT-app:6"
77
],
88
"body": [
9-
"videoId=NONE"
9+
"name=默认分类",
10+
"schoolId=NONE"
1011
]
1112
}

auto/ssoLogin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"url": "https://sso.testa.huitong.com/api/v100/ssonew/login",
2+
"url": "https://sso.testx.huitong.com/api/v100/ssonew/login",
33
"method": "POST",
44
"headers" : [
55
"Content-Type:application/json",

0 commit comments

Comments
 (0)