xref: /curl/tests/data/test1919 (revision 52273679)
1<testcase>
2<info>
3<keywords>
4conn-reuse
5</keywords>
6</info>
7
8# Server-side
9<reply>
10<data nocheck="yes">
11HTTP/1.1 200 OK
12Content-Length: 6
13
14-foo-
15</data>
16</reply>
17
18# Client-side
19<client>
20<server>
21http
22</server>
23
24# This created a memory leak in 7.83.1 and earlier
25<name>
26set CURLOPT_XOAUTH2_BEARER and do connection reuse
27</name>
28<tool>
29lib%TESTNUMBER
30</tool>
31<command>
32http://%HOSTIP:%HTTPPORT/%TESTNUMBER
33</command>
34</client>
35
36# Verify data after the test has been "shot"
37<verify>
38<protocol>
39GET /%TESTNUMBER HTTP/1.1
40Host: %HOSTIP:%HTTPPORT
41Authorization: Bearer c4e448d652a961fda0ab64f882c8c161d5985f805d45d80c9ddca1
42Accept: */*
43
44GET /%TESTNUMBER HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46Authorization: Bearer c4e448d652a961fda0ab64f882c8c161d5985f805d45d80c9ddca1
47Accept: */*
48
49</protocol>
50</verify>
51</testcase>
52