File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test180
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 PUT
    6: HTTP/1.0
    7: </keywords>
    8: </info>
    9: 
   10: <reply>
   11: <data>
   12: HTTP/1.0 200 OK swsclose
   13: Date: Thu, 09 Nov 2010 14:49:00 GMT
   14: Server: test-server/fake
   15: 
   16: blablabla
   17: 
   18: </data>
   19: </reply>
   20: 
   21: # Client-side
   22: <client>
   23: <server>
   24: http
   25: </server>
   26:  <name>
   27: HTTP 1.0 PUT
   28:  </name>
   29:  <command>
   30: http://%HOSTIP:%HTTPPORT/we/want/180 -T log/test180.txt --http1.0
   31: </command>
   32: <file name="log/test180.txt">
   33: Weird
   34:      file
   35:          to
   36:    upload
   37: for
   38:    testing
   39: the
   40:    PUT
   41:       feature
   42: </file>
   43: </client>
   44: 
   45: # Verify data after the test has been "shot"
   46: <verify>
   47: <strip>
   48: ^User-Agent:.*
   49: </strip>
   50: <protocol>
   51: PUT /we/want/180 HTTP/1.0
   52: Host: %HOSTIP:%HTTPPORT
   53: Accept: */*
   54: Content-Length: 78
   55: 
   56: Weird
   57:      file
   58:          to
   59:    upload
   60: for
   61:    testing
   62: the
   63:    PUT
   64:       feature
   65: </protocol>
   66: </verify>
   67: </testcase>

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