Test Connectivity of a Website
Tests connectivity to a website by issuing a HEAD request.
URL
/api/v1/website/[website_id]/test
HTTP Method
GET
URL Parameters
|
Parameter |
Required |
Type |
Description |
|---|---|---|---|
|
website_id |
true |
integer |
Specifies the website ID to test. |
Response Parameters
Returns the HTTP(S) response to the HEAD request. Returns both HTTP and HTTPS responses if protocol for website is set to both.
Example: Test connectivity to website 1
Request
GET
/api/v1/website/1/test
cURL
Copy
curl -kv \
-u api_ninja:ninja_password \
-X GET \
https://172.31.1.172:4849/api/v1/website/1/test
Response
Copy
HTTP CONNECT
-------------------------------------------------
HTTP\/1.1 200 OK
Date: Wed, 26 Oct 2016 17:08:53 GMT
Content-Type: text\/html
Content-Length: 1270
Connection: close
Vary: Accept-Encoding
Accept-Ranges: bytes
Cache-Control: max-age=604800
Etag: \"359670651+gzip\"
Expires: Wed, 02 Nov 2016 17:08:53 GMT
Last-Modified: Fri, 09 Aug 2013 23:54:35 GMT
X-Cache: HIT
x-ec-custom-error: 1
Server: ECS