forked from curl/curl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test1413: verify redirects to URLs with fragments
The bug report claimed it didn't work. This problem was probably fixed in 473003f. Bug: http://curl.haxx.se/bug/view.cgi?id=3581898
- Loading branch information
Showing
2 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
followlocation | ||
</keywords> | ||
</info> | ||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
HTTP/1.1 302 OK swsclose | ||
Location: moo.html/14130002#fragmentpart | ||
Date: Thu, 09 Nov 2010 14:49:00 GMT | ||
Connection: close | ||
|
||
</data> | ||
<data2> | ||
HTTP/1.1 200 OK swsclose | ||
Location: this should be ignored | ||
Date: Thu, 09 Nov 2010 14:49:00 GMT | ||
Connection: close | ||
|
||
body | ||
</data2> | ||
<datacheck> | ||
HTTP/1.1 302 OK swsclose | ||
Location: moo.html/14130002#fragmentpart | ||
Date: Thu, 09 Nov 2010 14:49:00 GMT | ||
Connection: close | ||
|
||
HTTP/1.1 200 OK swsclose | ||
Location: this should be ignored | ||
Date: Thu, 09 Nov 2010 14:49:00 GMT | ||
Connection: close | ||
|
||
body | ||
</datacheck> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP redirect with fragment in new URL | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/this/1413 -L | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<strip> | ||
^User-Agent:.* | ||
</strip> | ||
<protocol> | ||
GET /this/1413 HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
Accept: */* | ||
|
||
GET /this/moo.html/14130002 HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |