Parse request URL

Also fixes flaky HTTP test. Makes it less flaky but still a little
flaky.