mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 22:15:13 -05:00
7bc1180437
By default, the MSYS2 bash interprets http:/%HOSTIP:%HTTPPORT/want/1143 as a POSIX file list and converts it to a Windows file list. Disable this with MSYS2_ARG_CONV_EXCL for the test to pass. Ref https://github.com/msys2/msys2/wiki/Porting#filesystem-namespaces Closes https://github.com/curl/curl/pull/2765
51 lines
702 B
Plaintext
51 lines
702 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
followlocation
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
HTTP/1.1 200 hello
|
|
Connection: close
|
|
Content-Length: 4
|
|
|
|
hej
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
HTTP URL with http:/ (one slash!)
|
|
</name>
|
|
<command>
|
|
http:/%HOSTIP:%HTTPPORT/want/1143
|
|
</command>
|
|
<setenv>
|
|
# Needed for MSYS2 to not treat the argument as a POSIX path list
|
|
# that has to be converted to Windows paths
|
|
MSYS2_ARG_CONV_EXCL=http:/
|
|
</setenv>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<strip>
|
|
^User-Agent:.*
|
|
</strip>
|
|
<protocol>
|
|
GET /want/1143 HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|