Changes with Apache 1.3.21
+ *) EBCDIC: The proxy, when used in a proxy chain, "forgot" to
+ convert the "CONNECT host:port HTTP/1.0" request line to ASCII
+ before contacting the next proxy, and was thus unusable for
+ SSL proxying. [Martin Kraemer]
+
*) SECURITY: Make support/split-logfile use the default log file if
"/" or "\" are present in the virtual host name. This prevents
the possible use of specially crafted virtual host names in
Explain0("Sending the CONNECT request to the remote proxy");
ap_snprintf(buffer, sizeof(buffer), "CONNECT %s HTTP/1.0" CRLF,
r->uri);
+#ifdef CHARSET_EBCDIC
+ /* We are writing to the pure socket,
+ * so we must convert our string to ASCII first
+ */
+ ebcdic2ascii(buffer, buffer, strlen(buffer));
+#endif
send(sock, buffer, strlen(buffer),0);
ap_snprintf(buffer, sizeof(buffer),
"Proxy-agent: %s" CRLF CRLF, ap_get_server_version());
+#ifdef CHARSET_EBCDIC
+ ebcdic2ascii(buffer, buffer, strlen(buffer));
+#endif
send(sock, buffer, strlen(buffer),0);
}
else {