-
Create a New Potatso Instance:
- Go to the Potatso website and sign up for a service account.
- Sign up for an API key or use username/password for authentication.
-
Install Docker:
- Download the latest Docker image from the official website.
- Install Docker on your system.
-
Launch Potatso Instance:
- In the command prompt, run
potatso start --key=your_api_keyto start the Potatso service.
- In the command prompt, run
-
Log In:
- After starting, log in using your credentials. If you used API key, use
potatso user_name --key=your_api_key, otherwise useuser_name.
- After starting, log in using your credentials. If you used API key, use
-
Enable API Key:
Navigate to the API key settings in Potatso and enable the API key.
-
Test HTTP Requests:
-
Use Python's requests module. Example script:
import requests requests.get('http://example.com', headers={'Authorization': 'Bearer YOUR_API_KEY'}) -
Check responses with
potatso status --output json.
-
-
Test HTTPS Requests:
-
Use HTTPS methods in requests. Example:
import requests requests.get('https://example.com', headers={'Authorization': 'Bearer YOUR_API_KEY'}) -
Check responses with
potatso status --output json.
-
-
Test TCP Requests:
-
Use
https.getmethod.import requests requests.get('http://example.com:88', headers={'Authorization': 'Bearer YOUR_API_KEY'}) -
Check responses with
potatso status --output json.
-
-
Test UDP Requests:
-
Use
http.getmethod.import requests requests.get('http://example.com', headers={'Authorization': 'Bearer YOUR_API_KEY'}) -
Check responses with
potatso status --output json.
-
-
Enable HTTPS API Key:
Ensure the HTTPS API key is set in Potatso's settings.
-
Use Python for Multiple Requests:
- Loop through URLs to send multiple requests:
requests = ['http://example.com', 'https://example.com'] for url in requests: response = requests.get(url, headers={'Authorization': 'Bearer YOUR_API_KEY'}) print(response.status_code)
- Loop through URLs to send multiple requests:
-
Handle Errors:
Catch exceptions and log errors as shown in the script.
-
Use Potatso API for Other Testing:
After setting up API keys, use Potatso for firewalls, intrusion detection, etc.
Summary:
- Ensure you have a service account with an API key.
- Install Docker and run Potatso instance.
- Configure API key settings.
- Use Python scripts for HTTP, HTTPS, TCP, and UDP testing.
- Handle errors and use Potatso for advanced testing.
Start with testing HTTP and HTTPS using the provided scripts, then move to TCP and UDP.








