Skip to content
Snippets Groups Projects
Select Git revision
  • d9adab8a52a0afaef19bc6e1d31f6af36eab86e8
  • master default protected
  • ci
  • co
  • dev
  • legacy-v2
  • legacy
7 results

README.md

Blame
  • test1035 1.06 KiB
    <testcase>
    <info>
    <keywords>
    HTTP
    HTTP GET
    HTTP proxy
    IDN
    FAILURE
    </keywords>
    </info>
    
    #
    # Server-side
    <reply>
    <data>
    HTTP/1.0 503 Service Unavailable
    Date: Thu, 09 Nov 2010 14:49:00 GMT
    Server: test-server/fake swsclose
    Content-Type: text/html
    Funny-head: yesyes
    
    </data>
    </reply>
    
    #
    # Client-side
    <client>
    <server>
    http
    </server>
    <features>
    idn
    </features>
    <setenv>
    LC_ALL=
    LC_CTYPE=en_US.UTF-8
    </setenv>
    <precheck>
    perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
    </precheck>
     <name>
    HTTP over proxy with too long IDN host name
     </name>
     <command>
    http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/1035 -x %HOSTIP:%HTTPPORT
    </command>
    </client>
    
    #
    # Verify data after the test has been "shot"
    <verify>
    <strip>
    ^User-Agent:.*
    </strip>
    <protocol>
    GET http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/1035 HTTP/1.1
    Host: too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local
    Accept: */*
    Proxy-Connection: Keep-Alive
    
    </protocol>
    </verify>
    </testcase>