2020-07-23 15:16:14 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
URL API
|
|
|
|
CURLOPT_CURLU
|
|
|
|
CURLOPT_FOLLOWLOCATION
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 302 OK
|
|
|
|
Content-Length: 6
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: /%TESTNUMBER0002
|
2020-07-23 15:16:14 +08:00
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data>
|
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Content-Length: 11
|
|
|
|
|
|
|
|
redirected
|
|
|
|
</data2>
|
|
|
|
<datacheck>
|
|
|
|
redirected
|
|
|
|
redirected
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2020-07-23 15:16:14 +08:00
|
|
|
</tool>
|
|
|
|
|
|
|
|
<name>
|
|
|
|
re-run redirected transfer without setting CURLU URL again
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2020-07-23 15:16:14 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2020-07-23 15:16:14 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0002 HTTP/1.1
|
2020-07-23 15:16:14 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2020-07-23 15:16:14 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0002 HTTP/1.1
|
2020-07-23 15:16:14 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|