make this script send requests as fast as possible for testing my website import…
- User
make this script send requests as fast as possible for testing my website
import requests import time
Define session and headers
session = requests.Session() session.headers.update({ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36", "authority": "furrychat.net", "method": "POST", "path": "/chat/system/random.php", "scheme": "https", "accept": "/", "accept-encoding": "gzip, deflate, br, zstd", "accept-language": "en-US,en;q=0.9,ru;q=0.8", "origin": "https://furrychat.net", "priority": "u=1, i", "referer": "https://furrychat.net/chat/", "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest", "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", })
Add the PHPSESSID cookie
session.cookies.set("PHPSESSID", "kdbn5gohnqtu2iq1pbp8bml096", domain="furrychat.net", path="/")
Define the URL and body
url = "https://furrychat.net/chat/system/random.php" body = {"random_username": "1"}
Function to send the request
def send_request(): try: response = session.post(url, data=body) print(f"Response: {response.status_code}, Content: {response.text[:100]}") # Print first 100 chars of response except Exception as e: print(f"Error: {e}")
Loop to send the request every 0.1 seconds
while True: send_request() time.sleep(0)
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.