File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test669
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 POST
    6: HTTP MIME POST
    7: HTTP FORMPOST
    8: </keywords>
    9: </info>
   10: # Server-side
   11: <reply>
   12: <data>
   13: HTTP/1.0 200 OK swsclose
   14: Date: Thu, 09 Nov 2010 14:49:00 GMT
   15: Server: test-server/fake
   16: 
   17: blablabla
   18: 
   19: </data>
   20: </reply>
   21: 
   22: # Client-side
   23: <client>
   24: <server>
   25: http
   26: </server>
   27:  <name>
   28: HTTP custom Content-Type with parameter
   29:  </name>
   30:  <command>
   31: http://%HOSTIP:%HTTPPORT/we/want/669 -H 'Content-type: multipart/form-data; charset=utf-8' -F name=daniel -F tool=curl
   32: </command>
   33: </file>
   34: </client>
   35: 
   36: # Verify data after the test has been "shot"
   37: <verify>
   38: <strip>
   39: ^User-Agent:.*
   40: </strip>
   41: <strippart>
   42: s/^--------------------------[a-z0-9]*/------------------------------/
   43: s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
   44: </strippart>
   45: <protocol>
   46: POST /we/want/669 HTTP/1.1
   47: User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
   48: Host: %HOSTIP:%HTTPPORT
   49: Accept: */*
   50: Content-Length: 242
   51: Content-Type: multipart/form-data; charset=utf-8; boundary=----------------------------
   52: 
   53: ------------------------------
   54: Content-Disposition: form-data; name="name"
   55: 
   56: daniel
   57: ------------------------------
   58: Content-Disposition: form-data; name="tool"
   59: 
   60: curl
   61: --------------------------------
   62: </protocol>
   63: </verify>
   64: </testcase>

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