WebPagetest Forums
runtest.php returning 301 Moved Permanently - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: runtest.php returning 301 Moved Permanently (/showthread.php?tid=14442)



runtest.php returning 301 Moved Permanently - joe912@gmail.com - 08-05-2016 11:57 PM

Hi,

I'm trying to run a test using the api but am getting a "310 Moved Permanently" response.

I'm using http://www.hurl.it to issue a GET against http://www.webpagetest.org/runtest.php
using my API key.

Thanks
Joe


RE: runtest.php returning 301 Moved Permanently - pmeenan - 08-08-2016 06:46 AM

Try https instead of http (or you can hit http://api.webpagetest.org/ if you need http) or enable following of redirects on the API calls. The site moved to https with HSTS last week.


RE: runtest.php returning 301 Moved Permanently - joe912@gmail.com - 08-08-2016 05:58 PM

(08-08-2016 06:46 AM)pmeenan Wrote:  Try https instead of http (or you can hit http://api.webpagetest.org/ if you need http) or enable following of redirects on the API calls. The site moved to https with HSTS last week.

Thanks Patrick, that sorted it