File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1904
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: HTTP CONNECT
    7: HTTP proxy
    8: proxytunnel
    9: </keywords>
   10: </info>
   11: 
   12: #
   13: # Server-side
   14: <reply>
   15: <data>
   16: HTTP/1.1 200 OK
   17: Date: Thu, 09 Nov 2010 14:49:00 GMT
   18: Server: test-server/fake swsclose
   19: Content-Type: text/html
   20: Funny-head: yesyes
   21: Content-Length: 9
   22: 
   23: contents
   24: </data>
   25: <connect>
   26: HTTP/1.1 204 Sure go ahead
   27: 
   28: </connect>
   29: <datacheck>
   30: HTTP/1.1 204 Sure go ahead
   31: 
   32: HTTP/1.1 200 OK
   33: Date: Thu, 09 Nov 2010 14:49:00 GMT
   34: Server: test-server/fake swsclose
   35: Content-Type: text/html
   36: Funny-head: yesyes
   37: Content-Length: 9
   38: 
   39: contents
   40: </datacheck>
   41: </reply>
   42: 
   43: #
   44: # Client-side
   45: <client>
   46: <server>
   47: http
   48: http-proxy
   49: </server>
   50:  <name>
   51: HTTP CONNECT with 204 response
   52:  </name>
   53:  <command>
   54: http://test.1904:%HTTPPORT/we/want/that/page/1904 -p --proxy %HOSTIP:%PROXYPORT
   55: </command>
   56: <features>
   57: proxy
   58: </features>
   59: </client>
   60: 
   61: #
   62: # Verify data after the test has been "shot"
   63: <verify>
   64: <strip>
   65: ^User-Agent:.*
   66: </strip>
   67: <proxy>
   68: CONNECT test.1904:%HTTPPORT HTTP/1.1
   69: Host: test.1904:%HTTPPORT
   70: User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
   71: Proxy-Connection: Keep-Alive
   72: 
   73: </proxy>
   74: <protocol>
   75: GET /we/want/that/page/1904 HTTP/1.1
   76: Host: test.1904:%HTTPPORT
   77: User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
   78: Accept: */*
   79: 
   80: </protocol>
   81: </verify>
   82: </testcase>

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