WebPagetest Forums
Url string with REST - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Url string with REST (/showthread.php?tid=671)



Url string with REST - ksenkowski - 04-14-2011 03:50 AM

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


RE: Url string with REST - pmeenan - 04-14-2011 04:36 AM

Yep, you need to url-encode the query parameters before sending them, otherwise the request itself breaks on the & :-)