Welcome to the WS Test Connectivity Service. This service allows you to test
if your client can successfully connect to the API. It supports only GET and OPTIONS requests
and provides a JSON response confirming the connection status.
curl command.
If you’re new to web services, follow these examples to learn how requests and responses work.
The service is hosted at the following endpoint:
GET /webservices/rest/ws-test-connectivity.php
Here’s how you can test the connectivity with Burp Repeater:
GET /webservices/rest/ws-test-connectivity.php HTTP/1.1
Host: mutillidae.localhost
Origin: http://mutillidae.localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Accept: application/json
Connection: close
Content-Type: application/json
Instructions:
curl (Command Line)If you prefer the command line, use the following curl command:
curl -X GET "http://mutillidae.localhost/webservices/rest/ws-test-connectivity.php" \
-H "Host: mutillidae.localhost" \
-H "Origin: http://mutillidae.localhost" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
Instructions:
curl command.If everything works correctly, you should receive a response like this:
{
"code": 200,
"status": "OK",
"message": "Connection succeeded...",
"timestamp": "2024-10-27 22:35:12"
}
mutillidae.localhost host is correctly configured in your environment.405 Method Not Allowed response, make sure you're using a GET request.Try experimenting with preflight OPTIONS requests to explore how CORS settings affect the service.
This will help you understand how the API behaves in real-world scenarios.