Current time: 09-15-2019, 04:22 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Url string with REST
04-14-2011, 03:50 AM (This post was last modified: 04-14-2011 04:12 AM by ksenkowski.)
Post: #1
Url string with REST
Hi,

I noticed something odd with what we are sending to webpagetest.org via rest. When we send a url that has an ampersand in the string (like example.com/index.aspx?AWSFlag=N&Zip=60061&Name=Bob) the entire url string is not passed. It stops at the first &. Any suggestions why that might be or how we can avoid it with out PHP?

Thanks

Hi,

Just answered my own question. I swapped out the & for %26 (ASCII) and the tests ran correctly.

Keith
Find all posts by this user
Quote this message in a reply
04-14-2011, 04:36 AM
Post: #2
RE: Url string with REST
Yep, you need to url-encode the query parameters before sending them, otherwise the request itself breaks on the & :-)
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: 2 Guest(s)