Dooratre commited on
Commit
9884211
·
verified ·
1 Parent(s): be2cac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -12
app.py CHANGED
@@ -1,16 +1,20 @@
1
  import requests
 
2
 
3
- url = "http://weweirpfjeojor.rf.gd/index.php"
4
- payload = {
5
- "id": "4",
6
- "firstname": "Hulo",
7
- "lastname": "Nuawara",
8
- "token": "23eere32r43r543543t"
9
- }
10
 
11
- response = requests.post(url, data=payload)
 
12
 
13
- if response.status_code == 200:
14
- print("Data added successfully!")
15
- else:
16
- print("Failed to add data. Status code:", response.status_code)
 
 
 
 
 
 
 
 
 
1
  import requests
2
+ import urllib3
3
 
4
+ api_url = "https://ai-app-ly.infinityfreeapp.com/tele.php"
 
 
 
 
 
 
5
 
6
+ # Disable SSL certificate verification
7
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
8
 
9
+
10
+ data = {
11
+ "register": True,
12
+ "username": "rth",
13
+ "password": "gkfgfgh"
14
+ }
15
+
16
+ response = requests.post(api_url, data=data, verify=False)
17
+ json_data = response.json()
18
+ message = json_data['message']
19
+
20
+ print(message)