File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1373
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: #
   10: <reply>
   11: <data nocheck="yes">
   12: HTTP/1.1 200 OK
   13: Date: Thu, 09 Nov 2010 14:49:00 GMT
   14: Server: test-server/fake
   15: Content-Length: 6
   16: Connection: close
   17: Content-Type: text/html
   18: 
   19: 12345
   20: </data>
   21: </reply>
   22: 
   23: #
   24: # Client-side
   25: <client>
   26: <server>
   27: http
   28: </server>
   29: <name>
   30: HTTP GET -o fname -i without Content-Disposition, -D stdout
   31: </name>
   32: <command option="no-output,no-include">
   33: http://%HOSTIP:%HTTPPORT/1373 -i -o log/outfile1373 -D -
   34: </command>
   35: <postcheck>
   36: perl %SRCDIR/libtest/notexists.pl log/1373
   37: </postcheck>
   38: </client>
   39: 
   40: #
   41: # Verify data after the test has been "shot"
   42: <verify>
   43: <strip>
   44: ^User-Agent:.*
   45: </strip>
   46: <protocol>
   47: GET /1373 HTTP/1.1
   48: Host: %HOSTIP:%HTTPPORT
   49: Accept: */*
   50: 
   51: </protocol>
   52: 
   53: <file1 name="log/outfile1373">
   54: HTTP/1.1 200 OK
   55: Date: Thu, 09 Nov 2010 14:49:00 GMT
   56: Server: test-server/fake
   57: Content-Length: 6
   58: Connection: close
   59: Content-Type: text/html
   60: 
   61: 12345
   62: </file1>
   63: 
   64: <file2 name="log/stdout1373">
   65: HTTP/1.1 200 OK
   66: Date: Thu, 09 Nov 2010 14:49:00 GMT
   67: Server: test-server/fake
   68: Content-Length: 6
   69: Connection: close
   70: Content-Type: text/html
   71: 
   72: </file2>
   73: 
   74: </verify>
   75: </testcase>

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