Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,16 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
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)
|