WebPagetest Forums
RESTful runtest call for private instance without key - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: RESTful runtest call for private instance without key (/showthread.php?tid=15514)



RESTful runtest call for private instance without key - stefan - 10-12-2018 11:21 PM

Hi!

I have set up a server and an agent in AWS. It works fine with "manual execution" but when I try to use the RESTful API with the following URL:

http://ec2-35-159-44-181.eu-central-1.compute.amazonaws.com/runtest.php?url=www.systemverification.com&f=xml&fvonly=1

...I get this response:

<?xml version="1.0" encoding="UTF-8"?>
<response>
<statusCode>400</statusCode>
<statusText>An error occurred processing your request (missing API key).</statusText>
</response>

In the API documentation it says that for parameter k:

"optional (required for public instance)"

What have I missed?

BR Stefan

I found a key in the server at /var/www/webpagetest/www/settings/keys.ini. When using this in the for the k parameter it works Smile