xref: /curl/tests/data/test1960 (revision 9fa018db)
1<testcase>
2<info>
3<keywords>
4HTTP
5CURLOPT_SOCKOPTFUNCTION
6CURL_SOCKOPT_ALREADY_CONNECTED
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data crlf="yes">
13HTTP/1.1 200 OK
14Date: Thu, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Content-Type: text/html
17Content-Length: 0
18
19</data>
20</reply>
21
22# Client-side
23<client>
24<precheck>
25./libtest/lib%TESTNUMBER check
26</precheck>
27<server>
28http
29</server>
30
31<name>
32application hands over already connected socket
33</name>
34<tool>
35lib%TESTNUMBER
36</tool>
37
38<command>
39http://%HOSTIP:%HTTPPORT/file %HOSTIP %HTTPPORT
40</command>
41</client>
42
43# Verify data after the test has been "shot"
44<verify>
45<protocol crlf="yes">
46GET /file HTTP/1.1
47Host: %HOSTIP:%HTTPPORT
48Accept: */*
49
50</protocol>
51</verify>
52</testcase>
53