diff --git a/tests/data/test523 b/tests/data/test523
new file mode 100644
index 000000000..07c3b16a3
--- /dev/null
+++ b/tests/data/test523
@@ -0,0 +1,61 @@
+
+
+HTTP
+HTTP GET
+CURLOPT_PORT
+CURLOPT_PROXY
+
+
+
+#
+# Server-side
+
+
+HTTP/1.1 200 OK swsclose
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
+ETag: "21025-dc7-39462498"
+Accept-Ranges: bytes
+Content-Length: 6
+
+hello
+
+
+
+#
+# Client-side
+
+
+http
+
+
+lib523
+
+
+HTTP GET with proxy and CURLOPT_PORT
+
+# first URL then proxy
+
+http://www.haxx.se:999/523 http://%HOSTIP:%HTTPPORT
+
+
+
+#
+# Verify data after the test has been "shot"
+
+
+^User-Agent:.*
+
+
+GET http://www.haxx.se:19999/523 HTTP/1.1
+Authorization: Basic eHh4Onl5eQ==
+Host: www.haxx.se:19999
+Pragma: no-cache
+Accept: */*
+
+
+
+hello
+
+