I'm guessing something like this should parse the URI correctly and still get the desired response back from the web server:

	normalize_uri(target_uri.path, "/?p=#{post_id}")