File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1312
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: -J
    7: </keywords>
    8: </info>
    9: 
   10: #
   11: <reply>
   12: <data nocheck="yes">
   13: HTTP/1.1 200 OK
   14: Date: Thu, 09 Nov 2010 14:49:00 GMT
   15: Server: test-server/fake
   16: Content-Length: 6
   17: Connection: close
   18: Content-Type: text/html
   19: Content-Disposition: inline; filename="name1312;weird"
   20: 
   21: 12345
   22: </data>
   23: </reply>
   24: 
   25: #
   26: # Client-side
   27: <client>
   28: # this relies on the debug feature to allow us to set directory to store the
   29: # -J output in
   30: <features>
   31: debug
   32: </features>
   33: <server>
   34: http
   35: </server>
   36: <name>
   37: HTTP GET with -J, Content-Disposition and ; in filename
   38: </name>
   39: <setenv>
   40: CURL_TESTDIR=%PWD/log
   41: </setenv>
   42: <command option="no-output,no-include">
   43: %HOSTIP:%HTTPPORT/1312 -J -O
   44: </command>
   45: </client>
   46: 
   47: #
   48: # Verify data after the test has been "shot"
   49: <verify>
   50: <strip>
   51: ^User-Agent:.*
   52: </strip>
   53: <protocol>
   54: GET /1312 HTTP/1.1
   55: Host: %HOSTIP:%HTTPPORT
   56: Accept: */*
   57: 
   58: </protocol>
   59: <file name="log/name1312;weird">
   60: 12345
   61: </file>
   62: 
   63: </verify>
   64: </testcase>

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