File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test338
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 10:01:16 2020 UTC (5 years ago) by misho
Branches: curl, MAIN
CVS tags: v7_70_0p4, HEAD
curl

    1: <testcase>
    2: # See https://github.com/curl/curl/issues/4499
    3: <info>
    4: <keywords>
    5: HTTP
    6: HTTP GET
    7: </keywords>
    8: </info>
    9: 
   10: #
   11: # Server-side
   12: <reply>
   13: <data>
   14: HTTP/1.1 200 OK
   15: Date: Thu, 09 Nov 2010 14:49:00 GMT
   16: Server: test-server/fake
   17: Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
   18: ETag: "21025-dc7-39462498"
   19: Accept-Ranges: bytes
   20: Content-Length: 6
   21: Content-Type: text/html
   22: Funny-head: yesyes
   23: 
   24: -foo-
   25: </data>
   26: <servercmd>
   27: connection-monitor
   28: </servercmd>
   29: </reply>
   30: 
   31: #
   32: # Client-side
   33: <client>
   34: <server>
   35: http
   36: </server>
   37:  <name>
   38: ANYAUTH connection reuse of non-authed connection
   39:  </name>
   40:  <command>
   41: http://%HOSTIP:%HTTPPORT/338 --next http://%HOSTIP:%HTTPPORT/338 --anyauth -u foo:moo
   42: </command>
   43: </client>
   44: 
   45: #
   46: # Verify data after the test has been "shot"
   47: <verify>
   48: <strip>
   49: ^User-Agent:.*
   50: </strip>
   51: <protocol>
   52: GET /338 HTTP/1.1
   53: Host: %HOSTIP:%HTTPPORT
   54: Accept: */*
   55: 
   56: GET /338 HTTP/1.1
   57: Host: %HOSTIP:%HTTPPORT
   58: Accept: */*
   59: 
   60: [DISCONNECT]
   61: </protocol>
   62: </verify>
   63: </testcase>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>