1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Added test case 38

This commit is contained in:
Daniel Stenberg 2001-03-14 14:25:57 +00:00
parent f8e1fc32de
commit df6ad8d8d6
6 changed files with 26 additions and 1 deletions

View File

@ -67,3 +67,5 @@ command34.txt prot34.txt reply340001.txt name34.txt reply34.txt \
command35.txt name35.txt prot35.txt reply35.txt \
command36.txt error36.txt name36.txt reply36.txt \
command37.txt name37.txt prot37.txt reply37.txt
command38.txt prot38.txt reply380001.txt \
name38.txt reply38.txt

1
tests/data/command38.txt Normal file
View File

@ -0,0 +1 @@
http://user:pwd@%HOSTIP:%HOSTPORT/38 -L

1
tests/data/name38.txt Normal file
View File

@ -0,0 +1 @@
HTTP GET with user+password in URL and Location: and --include

11
tests/data/prot38.txt Normal file
View File

@ -0,0 +1,11 @@
GET /38 HTTP/1.1
Authorization: Basic dXNlcjpwd2Q=
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
GET /ffffooooooooooooooooooooooooooooooooooooooooooooooooooo/37?fake HTTP/1.1
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

4
tests/data/reply38.txt Normal file
View File

@ -0,0 +1,4 @@
HTTP/1.0 301 OK
Location: http://127.0.0.1:8999/ffffooooooooooooooooooooooooooooooooooooooooooooooooooo/37?fake
blah

View File

@ -0,0 +1,6 @@
HTTP/1.0 301 OK
Location: http://127.0.0.1:8999/ffffooooooooooooooooooooooooooooooooooooooooooooooooooo/37?fake
HTTP/1.0 200 OK
no headers!