Hi,
I’m trying to submit a script though curl, but it seems that it isn’t being picked up. This is the syntax I use:
[font=Courier]curl -X POST WebPageTest
-F ‘f=json’
-F ‘url=https://www.example.com’
-F ‘k=mysupersecretkey’
-F ‘script=@script_file_name’
[/font]
My script consist of just:
[font=Courier]navigate https://yahoo.com
navigate https://ca.news.yahoo.com
[/font]
It works, but the only site visited is example.com, the result is exactly like if I had no “script” instruction. If I point to a non-existing file I get an expected error from curl. If I put invalid command in the wpt script, I do not get any error and get the same behaviour as if I had no script at all…
What am I doing wrong here?
Also, why do we need a url if we have a script (trying to automate some test where I could change just the wpt script…).