Skip to content

Commit

Permalink
Add test1181: Proxy request with --proxy-header "Connection: Keep-Alive"
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankeil authored and bagder committed Jan 19, 2021
1 parent 3bccc18 commit 6fcf226
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/data/Makefile.inc
Expand Up @@ -137,7 +137,7 @@ test1144 test1145 test1146 test1147 test1148 test1149 test1150 test1151 \
test1152 test1153 test1154 test1155 test1156 test1157 test1158 test1159 \
test1160 test1161 test1162 test1163 test1164 test1165 test1166 test1167 \
test1168 test1170 test1171 test1172 test1173 test1174 test1175 \
test1176 test1177 test1178 test1179 test1180 \
test1176 test1177 test1178 test1179 test1180 test1181 \
\
test1188 \
\
Expand Down
48 changes: 48 additions & 0 deletions tests/data/test1181
@@ -0,0 +1,48 @@
<testcase>
<info>
<keywords>
HTTP
HTTP proxy
</keywords>
</info>

# Server-side
<reply>
<data>
HTTP/1.1 200 OK
Server: Blafasel/5.0
Date: Sat, 16 Jan 2021 14:48:30 GMT
Content-Length: 12

Bla bla bla
</data>

</reply>

# Client-side
<client>
<server>
http
</server>
<features>
proxy
</features>
<name>
HTTP GET request with proxy and --proxy-header "Proxy-Connection: Keep-Alive"
</name>
<command>
--proxy http://%HOSTIP:%HTTPPORT --proxy-header "Proxy-Connection: Keep-Alive" http://%HOSTIP:%HTTPPORT/1181
</command>
</client>

<verify>
<protocol>
GET http://%HOSTIP:%HTTPPORT/1181 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive

</protocol>
</verify>
</testcase>

0 comments on commit 6fcf226

Please sign in to comment.