File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1513
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: PROGRESSFUNCTION
    5: </keywords>
    6: </info>
    7: 
    8: # Server-side
    9: <reply>
   10: <data nocheck="yes">
   11: HTTP/1.1 204 PARTIAL
   12: X-Comment: partial response to keep the client waiting
   13: </data>
   14: <postcmd>
   15: wait 10
   16: </postcmd>
   17: </reply>
   18: 
   19: # Client-side
   20: <client>
   21: <server>
   22: http
   23: </server>
   24: <tool>
   25: lib1513
   26: </tool>
   27:  <name>
   28: return failure immediately from progress callback
   29:  </name>
   30: 
   31: # this server/host won't be used for real
   32:  <command>
   33: http://%HOSTIP:%HTTPPORT/1513
   34: </command>
   35: </client>
   36: 
   37: # Verify data after the test has been "shot"
   38: <verify>
   39: <protocol>
   40: </protocol>
   41: # 42 == CURLE_ABORTED_BY_CALLBACK
   42: <errorcode>
   43: 42
   44: </errorcode>
   45: <stdout>
   46: PROGRESSFUNCTION called
   47: </stdout>
   48: </verify>
   49: </testcase>

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