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

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