WebPagetest Forums
Bug in wpt_batch_lib.py - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Bug in wpt_batch_lib.py (/showthread.php?tid=14726)



Bug in wpt_batch_lib.py - marty90 - 01-31-2017 03:36 AM

I found a bug in wpt_batch_lib.py.
To work, it should force the xml output with f=xml parameter.
Can be corrected changing line 70 from:

Code:
request = server_url + 'runtest.php?%s' % urllib.urlencode(test_params)

to:

Code:
request = server_url + 'runtest.php?&f=xml&%s' % urllib.urlencode(test_params)