API question - How can I append #foo to my url

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:

Can anyone suggest a way I can make the api call respect the “#barr” option at the end instead of ignoring it?

You need to url-encode your test parameters. It should be: “http://www.webpagetest.org/runtest.php?&f=xml&k=&url=http%3A%2F%2Fsomeurl.com%2Ffoo%23barr”