JoostSijm 5 жил өмнө
parent
commit
9ae23e8707
1 өөрчлөгдсөн 11 нэмэгдсэн , 1 устгасан
  1. 11 1
      test.py

+ 11 - 1
test.py

@@ -14,4 +14,14 @@ DATA = {
     'test': 'true',
 }
 
-print(requests.get(URL, headers=HEADERS, data=DATA).text)
+PARAMS = {
+    'alt': True
+}
+
+RESULT = requests.post(
+    URL,
+    headers=HEADERS,
+    data=DATA,
+    params=PARAMS
+)
+print(RESULT.text)