![]() |
API question - How can I append #foo to my url - Printable Version +- WebPagetest Forums (https://www.webpagetest.org/forums) +-- Forum: WebPagetest (/forumdisplay.php?fid=7) +--- Forum: General Discussion (/forumdisplay.php?fid=25) +--- Thread: API question - How can I append #foo to my url (/showthread.php?tid=14298) |
API question - How can I append #foo to my url - mrmac - 04-23-2016 02:25 AM 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? RE: API question - How can I append #foo to my url - pmeenan - 04-25-2016 10:57 PM 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" |