WebPagetest Forums
Advanced URL rewriting? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Feature Suggestions (/forumdisplay.php?fid=9)
+--- Thread: Advanced URL rewriting? (/showthread.php?tid=13686)



Advanced URL rewriting? - acdha - 04-21-2015 04:26 AM

My specific use-case is somewhat moot until HTTP/2 support arrives but I recently found myself wishing that the scripting support included the ability to override the URL protocol so you could test the effects of upgrading a site from HTTP to HTTPS.

The simplest way to implement this might be something along the lines of
Code:
overrideProtocol
but that seems like it'd be hard to do without impacting performance. Currently I'm testing this by preseeding the HSTS list but that doesn't appear to be possible on Chrome since they removed the
Code:
--hsts-host
command-line flag.[/code]