From 633493947fb59d397f326f7db31d09d26ef98f45 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 5 Nov 2022 00:10:25 +0100 Subject: [PATCH] test1221: verify --url-query --- tests/data/Makefile.inc | 13 +++++----- tests/data/test1221 | 53 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 tests/data/test1221 diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index cbb27973cb..30c2937d21 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -148,13 +148,12 @@ test1152 test1153 test1154 test1155 test1156 test1157 test1158 test1159 \ test1160 test1161 test1162 test1163 test1164 test1165 test1166 test1167 \ test1168 test1169 test1170 test1171 test1172 test1173 test1174 test1175 \ test1176 test1177 test1178 test1179 test1180 test1181 test1182 test1183 \ -test1184 test1185 test1186 test1187 test1188 test1189 \ -\ -test1190 test1191 test1192 test1193 test1194 test1195 test1196 test1197 \ -test1198 test1199 \ -test1200 test1201 test1202 test1203 test1204 test1205 test1206 test1207 \ -test1208 test1209 test1210 test1211 test1212 test1213 test1214 test1215 \ -test1216 test1217 test1218 test1219 test1220 test1223 \ +test1184 test1185 test1186 test1187 test1188 test1189 test1190 test1190 \ +test1191 test1192 test1193 test1194 test1195 test1196 test1197 test1198 \ +test1199 test1200 test1201 test1202 test1203 test1204 test1205 test1206 \ +test1207 test1208 test1209 test1210 test1211 test1212 test1213 test1214 \ +test1215 test1216 test1217 test1218 test1219 test1220 test1221 \ +test1223 \ test1224 test1225 test1226 test1227 test1228 test1229 test1230 test1231 \ test1232 test1233 test1234 test1235 test1236 test1237 test1238 test1239 \ test1240 test1241 test1242 test1243 test1244 test1245 test1246 test1247 \ diff --git a/tests/data/test1221 b/tests/data/test1221 new file mode 100644 index 0000000000..9382312b83 --- /dev/null +++ b/tests/data/test1221 @@ -0,0 +1,53 @@ + + + +HTTP +HTTP POST +--data-urlencode +--url-query + + + +# +# Server-side + + +HTTP/1.1 200 I am cool swsclose +Server: Cool server/10.0 +Content-Length: 0 + + + + +# +# Client-side + + +http + + +--url-query with --data-urlencode + + +http://%HOSTIP:%HTTPPORT/%TESTNUMBER --url-query "my name is moo[]" --url-query "yes=s i r" --url-query "v_alue@log/%TESTNUMBER.txt" --url-query @log/%TESTNUMBER.txt --url-query "+%3d%3d" --data-urlencode "start=once upon the time" + + +content to _?!#$'|<> + + + +# +# Verify data after the test has been "shot" + + +POST /%TESTNUMBER?my+name+is+moo%5b%5d&yes=s+i+r&v_alue=content+to+_%3f%21%23%24%27%7c%3c%3e%0a&content+to+_%3f%21%23%24%27%7c%3c%3e%0a&%3d%3d HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +User-Agent: curl/%VERSION +Accept: */* +Content-Length: 24 +Content-Type: application/x-www-form-urlencoded + +start=once+upon+the+time + + + -- 2.47.3