first basic auth
This commit is contained in:
@ -9,9 +9,16 @@ import json
|
||||
import argparse
|
||||
import random
|
||||
|
||||
token = "ich-bin-da-token"
|
||||
|
||||
headers = {
|
||||
"Authorization": f"Bearer {token}",
|
||||
"Content-Type": "application/json", # Adjust if needed for your payload format
|
||||
}
|
||||
|
||||
def send_post_request(uri, data):
|
||||
try:
|
||||
requests.post(uri, json=data, timeout=1)
|
||||
requests.post(uri, json=data, timeout=1, headers=headers)
|
||||
except requests.exceptions.RequestException as e:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user