File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test160
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: <info>
    3: <keywords>
    4: HTTP
    5: HTTP GET
    6: </keywords>
    7: </info>
    8: 
    9: # Server-side
   10: <reply>
   11: <data nocheck="yes">
   12: HTTP/1.1 200 OK swsclose
   13: Date: Thu, 09 Nov 2010 14:49:00 GMT
   14: Content-Length: 9
   15: 
   16: surprise
   17: </data>
   18: <data1>
   19: HTTP/1.1 200 OK swsclose
   20: Date: Thu, 09 Nov 2010 14:49:00 GMT
   21: Connection: close
   22: 
   23: surprise2
   24: </data1>
   25: 
   26: <postcmd>
   27: wait 1
   28: </postcmd>
   29: </reply>
   30: 
   31: # Client-side
   32: <client>
   33: <server>
   34: http
   35: </server>
   36:  <name>
   37: HTTP with delayed close, conn reuse, connection reset and retry
   38:  </name>
   39:  <command>
   40: http://%HOSTIP:%HTTPPORT/want/160 http://%HOSTIP:%HTTPPORT/wantmore/1600001
   41: </command>
   42: </client>
   43: 
   44: # Verify data after the test has been "shot"
   45: <verify>
   46: <stdout>
   47: HTTP/1.1 200 OK swsclose
   48: Date: Thu, 09 Nov 2010 14:49:00 GMT
   49: Content-Length: 9
   50: 
   51: surprise
   52: HTTP/1.1 200 OK swsclose
   53: Date: Thu, 09 Nov 2010 14:49:00 GMT
   54: Connection: close
   55: 
   56: surprise2
   57: </stdout>
   58: 
   59: <strip>
   60: ^User-Agent:.*
   61: </strip>
   62: <protocol>
   63: GET /want/160 HTTP/1.1
   64: Host: %HOSTIP:%HTTPPORT
   65: Accept: */*
   66: 
   67: GET /wantmore/1600001 HTTP/1.1
   68: Host: %HOSTIP:%HTTPPORT
   69: Accept: */*
   70: 
   71: </protocol>
   72: </verify>
   73: </testcase>

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