API question - How can I append #foo to my url
|
04-23-2016, 02:25 AM
Post: #1
|
|||
|
|||
![]()
Hi all,
I'm a webpagetest newbie. I'm currently trying to send a url to my private instance via api. The url is of the form: &url=http://someurl.com/foo#barr When I enter this in manually on the webpage test UI it works fine, but when I try to send this via an api call, the "#barr" is ignored and the test is run on http://someurl.com/foo instead. my current API request is of the form: "http://www.webpagetest.org/runtest.php?&f=xml&k=<Somekey>&url=http://someurl.com/foo#barr" Can anyone suggest a way I can make the api call respect the "#barr" option at the end instead of ignoring it? |
|||
04-25-2016, 10:57 PM
Post: #2
|
|||
|
|||
RE: API question - How can I append #foo to my url
You need to url-encode your test parameters. It should be: "http://www.webpagetest.org/runtest.php?&f=xml&k=<Somekey>&url=http%3A%2F%2Fsomeurl.com%2Ffoo%23barr"
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)