Current time: 04-24-2018, 08:58 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using API for scripting
04-05-2018, 09:23 AM
Post: #1
Using API for scripting
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.
Find all posts by this user
Quote this message in a reply
04-06-2018, 10:33 PM
Post: #2
RE: Using API for scripting
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)