File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test198
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: retry
    7: </keywords>
    8: </info>
    9: #
   10: # Server-side
   11: <reply>
   12: <data>
   13: HTTP/1.1 503 OK swsbounce
   14: Date: Thu, 09 Nov 2010 14:49:00 GMT
   15: Content-Length: 21
   16: 
   17: server not available
   18: </data>
   19: <data1>
   20: HTTP/1.1 200 OK
   21: Date: Thu, 09 Nov 2010 14:49:00 GMT
   22: Content-Length: 3
   23: Connection: close
   24: 
   25: ok
   26: </data1>
   27: 
   28: <datacheck>
   29: HTTP/1.1 200 OK
   30: Date: Thu, 09 Nov 2010 14:49:00 GMT
   31: Content-Length: 3
   32: Connection: close
   33: 
   34: ok
   35: </datacheck>
   36: 
   37: </reply>
   38: 
   39: #
   40: # Client-side
   41: <client>
   42: <server>
   43: http
   44: </server>
   45:  <name>
   46: HTTP GET --retry on 503 error with output to file
   47:  </name>
   48:  <command>
   49: http://%HOSTIP:%HTTPPORT/198 --retry 1000
   50: </command>
   51: </client>
   52: 
   53: #
   54: # Verify data after the test has been "shot"
   55: <verify>
   56: <strip>
   57: ^User-Agent:.*
   58: </strip>
   59: <protocol>
   60: GET /198 HTTP/1.1
   61: Host: %HOSTIP:%HTTPPORT
   62: Accept: */*
   63: 
   64: GET /198 HTTP/1.1
   65: Host: %HOSTIP:%HTTPPORT
   66: Accept: */*
   67: 
   68: </protocol>
   69: 
   70: </verify>
   71: </testcase>

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