HTTP CURLOPT_SOCKOPTFUNCTION CURL_SOCKOPT_ALREADY_CONNECTED # Server-side HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Content-Type: text/html Content-Length: 0 # Client-side ./libtest/lib%TESTNUMBER check http application hands over already connected socket lib%TESTNUMBER http://%HOSTIP:%HTTPPORT/file %HOSTIP %HTTPPORT # Verify data after the test has been "shot" GET /file HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */*