Annotation of embedaddon/curl/tests/data/test663, revision 1.1.1.1

1.1       misho       1: <testcase>
                      2: #
                      3: # This test is crafted to reproduce oss-fuzz bug
                      4: # https://crbug.com/oss-fuzz/17954
                      5: #
                      6: <info>
                      7: <keywords>
                      8: HTTP
                      9: HTTP GET
                     10: followlocation
                     11: </keywords>
                     12: </info>
                     13: #
                     14: # Server-side
                     15: <reply>
                     16: <data>
                     17: HTTP/1.1 302 OK
                     18: Location: http://example.net/there/it/is/../../tes t case=/6630002? yes no
                     19: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     20: Content-Length: 0
                     21: 
                     22: </data>
                     23: <data2>
                     24: HTTP/1.1 200 OK
                     25: Location: this should be ignored
                     26: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     27: Content-Length: 5
                     28: 
                     29: body
                     30: </data2>
                     31: <datacheck>
                     32: HTTP/1.1 302 OK
                     33: Location: http://example.net/there/it/is/../../tes t case=/6630002? yes no
                     34: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     35: Content-Length: 0
                     36: 
                     37: HTTP/1.1 200 OK
                     38: Location: this should be ignored
                     39: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     40: Content-Length: 5
                     41: 
                     42: body
                     43: </datacheck>
                     44: </reply>
                     45: 
                     46: #
                     47: # Client-side
                     48: <client>
                     49: <server>
                     50: http
                     51: </server>
                     52:  <name>
                     53: HTTP redirect with dotdots and whitespaces in absolute Location: URL
                     54:  </name>
                     55:  <command>
                     56: http://example.com/please/../gimme/663?foobar#hello -L -x http://%HOSTIP:%HTTPPORT
                     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: <protocol>
                     70: GET http://example.com/gimme/663?foobar HTTP/1.1
                     71: Host: example.com
                     72: Accept: */*
                     73: Proxy-Connection: Keep-Alive
                     74: 
                     75: GET http://example.net/there/tes%20t%20case=/6630002?+yes+no HTTP/1.1
                     76: Host: example.net
                     77: Accept: */*
                     78: Proxy-Connection: Keep-Alive
                     79: 
                     80: </protocol>
                     81: </verify>
                     82: </testcase>

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