This commit is contained in:
Viktor Szakats 2025-07-12 01:54:10 +02:00
parent 38d1a3cc06
commit fa7694aec7
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
7 changed files with 17 additions and 17 deletions

View file

@ -33,9 +33,9 @@ upgrade
</servercmd>
# Full list of frames: see <verify.stdout> below
# 1st a message with an emtpy fragment at the beginning
# 2nd a message with an emtpy fragment in the middle
# 3rd a message with an emtpy fragment at the end
# 1st a message with an empty fragment at the beginning
# 2nd a message with an empty fragment in the middle
# 3rd a message with an empty fragment at the end
# 4th a message with only empty fragments
<data nocheck="yes" nonewline="yes">
HTTP/1.1 101 Switching to WebSockets

View file

@ -35,7 +35,7 @@ http
HTTP with --json
</name>
<command>
--json '{ "drink": "coffe" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER
--json '{ "drink": "coffee" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
@ -50,7 +50,7 @@ Content-Type: application/json
Accept: application/json
Content-Length: 20
{ "drink": "coffe" }
{ "drink": "coffee" }
</protocol>
</verify>
</testcase>

View file

@ -35,7 +35,7 @@ http
HTTP with --json from stdin
</name>
<stdin>
{ "drink": "coffe" }
{ "drink": "coffee" }
</stdin>
<command>
--json @- http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H "Accept: foobar/*"
@ -53,7 +53,7 @@ Accept: foobar/*
Content-Type: application/json
Content-Length: 21
{ "drink": "coffe" }
{ "drink": "coffee" }
</protocol>
</verify>
</testcase>

View file

@ -35,7 +35,7 @@ http
HTTP with --json x 2
</name>
<command>
--json '{ "drink": "coffe",' --json ' "crunch": "cookie" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H "Content-Type: drinks/hot"
--json '{ "drink": "coffee",' --json ' "crunch": "cookie" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H "Content-Type: drinks/hot"
</command>
</client>
@ -50,7 +50,7 @@ Content-Type: drinks/hot
Accept: application/json
Content-Length: 40
{ "drink": "coffe", "crunch": "cookie" }
{ "drink": "coffee", "crunch": "cookie" }
</protocol>
</verify>
</testcase>

View file

@ -49,7 +49,7 @@ http
HTTP with --json + --next
</name>
<command>
--json '{ "drink": "coffe" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
--json '{ "drink": "coffee" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER --next http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
</command>
</client>
@ -64,7 +64,7 @@ Content-Type: application/json
Accept: application/json
Content-Length: 20
{ "drink": "coffe" }GET /%TESTNUMBER0002 HTTP/1.1
{ "drink": "coffee" }GET /%TESTNUMBER0002 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

View file

@ -62,7 +62,7 @@ http
HTTP with auth in URL redirected to another host
</name>
<command>
-x %HOSTIP:%HTTPPORT http://alberto:einstein@somwhere.example/%TESTNUMBER --location-trusted
-x %HOSTIP:%HTTPPORT http://alberto:einstein@somewhere.example/%TESTNUMBER --location-trusted
</command>
</client>
@ -73,8 +73,8 @@ HTTP with auth in URL redirected to another host
QUIT
</strip>
<protocol>
GET http://somwhere.example/998 HTTP/1.1
Host: somwhere.example
GET http://somewhere.example/998 HTTP/1.1
Host: somewhere.example
Authorization: Basic %b64[alberto:einstein]b64%
User-Agent: curl/%VERSION
Accept: */*

View file

@ -52,7 +52,7 @@ http
HTTP with auth in first URL but not second
</name>
<command>
-x %HOSTIP:%HTTPPORT http://alberto:einstein@somwhere.example/%TESTNUMBER http://somewhere.else.example/%TESTNUMBER
-x %HOSTIP:%HTTPPORT http://alberto:einstein@somewhere.example/%TESTNUMBER http://somewhere.else.example/%TESTNUMBER
</command>
</client>
@ -63,8 +63,8 @@ HTTP with auth in first URL but not second
QUIT
</strip>
<protocol>
GET http://somwhere.example/%TESTNUMBER HTTP/1.1
Host: somwhere.example
GET http://somewhere.example/%TESTNUMBER HTTP/1.1
Host: somewhere.example
Authorization: Basic %b64[alberto:einstein]b64%
User-Agent: curl/%VERSION
Accept: */*