WebPagetest Forums

Full Version: Using API for scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am trying to use the REST API for executing a script.
referring here - https://sites.google.com/a/webpagetest.o...stful-apis

however there are no examples for this.
I have a multiline script which I need to execute using the rest api.
It is just like any other parameter. script=<url-encoded script>

You need to make sure you are url-encoding all of your API parameters if you are passing them in the URL. Most of them won't really change but the test URL and script can often have characters that MUST be encoded.
Reference URL's