File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test287
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 CONNECT
    6: HTTP proxy
    7: proxytunnel
    8: </keywords>
    9: </info>
   10: 
   11: # Server-side
   12: <reply>
   13: 
   14: <connect nocheck="yes">
   15: HTTP/1.1 405 Method Not Allowed swsclose
   16: 
   17: And you should ignore this data.
   18: </connect>
   19: 
   20: </reply>
   21: 
   22: # Client-side
   23: <client>
   24: <server>
   25: http
   26: </server>
   27:  <name>
   28: HTTP proxy CONNECT with custom User-Agent header
   29:  </name>
   30:  <command>
   31: http://test.remote.example.com.287:%HTTPPORT/path/287 -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007"
   32: </command>
   33: <features>
   34: proxy
   35: </features>
   36: </client>
   37: 
   38: # Verify data after the test has been "shot"
   39: <verify>
   40: <protocol>
   41: CONNECT test.remote.example.com.287:%HTTPPORT HTTP/1.1
   42: Host: test.remote.example.com.287:%HTTPPORT
   43: Proxy-Connection: Keep-Alive
   44: User-Agent: looser/2007
   45: 
   46: </protocol>
   47: # CURLE_RECV_ERROR
   48: <errorcode>
   49: 56
   50: </errorcode>
   51: <stdout>
   52: HTTP/1.1 405 Method Not Allowed swsclose
   53: 
   54: </stdout>
   55: </verify>
   56: </testcase>

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