Don't use asprintf (n/a on Windows), don't add default port numbers to host
Correctly proxify request without trailing slash after host name