-
Understand the Network Structure:
Shadowrocket uses both HTTP and HTTPS to ensure security. It's accessible via public URLs (e.g., social media accounts) and private URLs (e.g., domain names).
-
Set Up Network URLs:
- Use both public and private URLs. For example, test at
https://example.com(public) andhttps://example.com(private).
- Use both public and private URLs. For example, test at
-
Test the Standard HTTP Server:
- Use curl commands to make HTTP requests. Example:
curl -v -k -H "Content-Type: application/json" -d '{"name":"Test"}' - Check responses for errors like 44 (server not online) or 53 Service Unavailable.
- Use curl commands to make HTTP requests. Example:
-
Test the HTTPS Server:
- Use curl commands with HTTPS flags. Example:
curl -H "Content-Type: application/json" -k -H "X-Content-Type-Options: show-q" -v
- Ensure HTTPS requests are handled correctly.
- Use curl commands with HTTPS flags. Example:
-
Check Network Reliability:
Simulate outages with timeouts or advanced testing tools to handle failures gracefully.
-
Consider Location-Based Issues:
Test from different regions (e.g., US public URL vs. EU private URL) to check for location-specific issues.
-
Use Error Handling and timeouts:
Catch exceptions and log errors to handle server issues. Consider using testing frameworks or libraries for simplicity.
-
Document Testing Process:
Record steps, observations, and issues encountered for future reference and documentation.
-
Set Up a Testing Environment:
Use servers like Apache or Nginx to manage requests. Consider creating a local server if needed.
By following these steps, you can effectively test the Shadowrocket network, ensuring its functionality and security.


