File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test177
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 Digest auth
    7: followlocation
    8: </keywords>
    9: </info>
   10: 
   11: # Server-side
   12: <reply>
   13: <data>
   14: HTTP/1.1 302 *MOVED* swsclose swsbounce
   15: Server: Microsoft-IIS/6.0
   16: Location: /mooooo/177
   17: Content-Type: text/html; charset=iso-8859-1
   18: 
   19: </data>
   20: </reply>
   21: 
   22: # Client-side
   23: <client>
   24: # 
   25: <server>
   26: http
   27: </server>
   28: <features>
   29: crypto
   30: </features>
   31:  <name>
   32: HTTP POST --digest to server doing a 302-location response
   33:  </name>
   34:  <command>
   35: http://%HOSTIP:%HTTPPORT/177 -u auser:apasswd --digest -d "junkelijunk"
   36: </command>
   37: </client>
   38: 
   39: # Verify data after the test has been "shot"
   40: <verify>
   41: <strip>
   42: ^User-Agent:.*
   43: </strip>
   44: <protocol>
   45: POST /177 HTTP/1.1
   46: User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6
   47: Host: %HOSTIP:%HTTPPORT
   48: Accept: */*
   49: Content-Length: 0
   50: Content-Type: application/x-www-form-urlencoded
   51: 
   52: </protocol>
   53: </verify>
   54: </testcase>

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