mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:03:32 +03:00
moved retry logic into multi instead of the connection itself
Update tests/data/Makefile.am Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com> Apply suggestions from code review whitespace stuff Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com> more whitspace fixes more docs changed pull request fixes (note that CI requires that symbols-in-versions be something that it should not be) moving to new curl version better documentation try and see maybe async is destroyed properly now? removed whitespace Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com> Update docs/libcurl/opts/CURLOPT_ALTSVC_CTRL.md "-" uses insteadvof space Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com> better handeling of the recovering and checking whether or not to recover
This commit is contained in:
parent
bf25e678cf
commit
ed1f181013
11 changed files with 94 additions and 252 deletions
|
|
@ -281,8 +281,7 @@ test3200 test3201 test3202 test3203 test3204 test3205 test3207 test3208 \
|
|||
test3209 test3210 test3211 test3212 test3213 test3214 test3215 \
|
||||
test3209 test3210 test3211 test3212 test3213 test3214 \
|
||||
\
|
||||
test3300 test3301 test3302 test3303\
|
||||
\
|
||||
test3300 test3301 test3302 test3303 \
|
||||
test4000 test4001
|
||||
|
||||
EXTRA_DIST = $(TESTCASES) DISABLED
|
||||
|
|
|
|||
86
tests/data/test3301
Normal file
86
tests/data/test3301
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
HTTP GET
|
||||
HTTP proxy
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Unknown-header: blrub
|
||||
Content-Length: 6
|
||||
|
||||
-foo-
|
||||
</data>
|
||||
|
||||
<servercmd>
|
||||
connection-monitor
|
||||
</servercmd>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
proxy
|
||||
alt-svc
|
||||
Debug
|
||||
</features>
|
||||
<setenv>
|
||||
# make debug-curl accept Alt-Svc over plain HTTP
|
||||
CURL_ALTSVC_HTTP="yeah"
|
||||
</setenv>
|
||||
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
|
||||
<name>
|
||||
alt-svc fail via proxy
|
||||
</name>
|
||||
|
||||
<command>
|
||||
--proxy http://%HOSTIP:%HTTPPORT --alt-svc "%LOGDIR/altsvc-%TESTNUMBER" http://test.remote.haxx.se.%TESTNUMBER:8990
|
||||
</command>
|
||||
<file name="%LOGDIR/altsvc-%TESTNUMBER">
|
||||
h1 test.remote.haxx.se.%TESTNUMBER 8990 h1 %HOSTIP %NOLISTENPORT "20290222 22:19:28" 0 0
|
||||
</file>
|
||||
|
||||
<features>
|
||||
proxy
|
||||
</features>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<stdout>
|
||||
HTTP/1.1 200 OK
|
||||
Unknown-header: blrub
|
||||
Content-Length: 6
|
||||
|
||||
-foo-
|
||||
</stdout>
|
||||
<protocol>
|
||||
CONNECT %HOSTIP:%NOLISTENPORT HTTP/1.1
|
||||
Host: %HOSTIP:%NOLISTENPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
[DISCONNECT]
|
||||
GET http://test.remote.haxx.se.%TESTNUMBER:8990/ HTTP/1.1
|
||||
Host: test.remote.haxx.se.%TESTNUMBER:8990
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
[DISCONNECT]
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue