-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Pingdom have modified this (undocumented) API, and it now requires a slightly different interface.
- If certain criteria are not met, the API response is empty.
- If other criteria are not met, the API responds with "internal server error"
- The API endpoint location has changed slightly.
- The API response format has changed.
Criteria
Based on testing (as of today), the API now requires that:
- A
user-agentheader be supplied. - A
refererheader be supplied (and set tohttps://tools.pingdom.com/?). - A
callbackparameter be passed, see Response below.
Response
The response will now be wrapped in some code for eval():
pingdom_tools && pingdom_tools({"test_id":"abc123","poll_state_url":"https://fpt-api.pingdom.com/api/0.1/test/abc123"});
I'd rather strip or regex that out than pass it to eval(), since otherwise we risk the potential for malicious responses.
Metadata
Metadata
Assignees
Labels
No labels