Current time: 12-17-2017, 08:43 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API question - How can I append #foo to my url
04-23-2016, 02:25 AM
Post: #1
Question 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:
"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?
Find all posts by this user
Quote this message in a reply
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"
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)