File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,15 @@ def run_test():
22
22
# }
23
23
24
24
get_request_result = scrappey .get ({
25
- 'session' : session ['session' ],
26
25
'url' : 'https://httpbin.rs/get' ,
26
+ 'session' : session ['session' ],
27
27
})
28
28
print ('GET Request Result:' , get_request_result )
29
29
30
30
post_request_result = scrappey .post ({
31
31
"url" : "https://httpbin.rs/post" ,
32
- "postData" : "test=test&test2=test2"
32
+ "postData" : "test=test&test2=test2" ,
33
+ 'session' : session ['session' ],
33
34
})
34
35
print ('POST Request Result:' , post_request_result )
35
36
@@ -39,7 +40,8 @@ def run_test():
39
40
"postData" : "{\" email\" :\" email\" ,\" password\" :\" password\" }" ,
40
41
"customHeaders" : {
41
42
"content-type" : "application/json"
42
- }
43
+ },
44
+ 'session' : session ['session' ],
43
45
})
44
46
print ('POST Request Result:' , post_request_result_json )
45
47
You can’t perform that action at this time.
0 commit comments