File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test15
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: --write-out
    7: </keywords>
    8: </info>
    9: # Server-side
   10: <reply>
   11: <data nocheck="yes">
   12: HTTP/1.4 200 OK
   13: Fake: yes
   14: Fake: yes
   15: Fake: yes
   16: Content-Length: 26
   17: 
   18: Repeated nonsense-headers
   19: </data>
   20: </reply>
   21: 
   22: # Client-side
   23: <client>
   24: <server>
   25: http
   26: </server>
   27:  <name>
   28: --write-out test
   29:  </name>
   30:  <command>
   31: http://%HOSTIP:%HTTPPORT/want/15 --write-out "%{url_effective} %{http_code} %{size_download}\n"
   32: </command>
   33: </client>
   34: 
   35: # Verify data after the test has been "shot"
   36: <verify>
   37: <stdout>
   38: HTTP/1.4 200 OK
   39: Fake: yes
   40: Fake: yes
   41: Fake: yes
   42: Content-Length: 26
   43: 
   44: Repeated nonsense-headers
   45: http://%HOSTIP:%HTTPPORT/want/15 200 26
   46: </stdout>
   47: <strip>
   48: ^User-Agent:.*
   49: </strip>
   50: <protocol>
   51: GET /want/15 HTTP/1.1
   52: Host: %HOSTIP:%HTTPPORT
   53: Accept: */*
   54: 
   55: </protocol>
   56: </verify>
   57: </testcase>

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