File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test662
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: followlocation
    7: </keywords>
    8: </info>
    9: #
   10: # Server-side
   11: <reply>
   12: <data>
   13: HTTP/1.1 302 OK
   14: Location: http://example.net/tes t case=/6620002
   15: Date: Thu, 09 Nov 2010 14:49:00 GMT
   16: Content-Length: 0
   17: 
   18: </data>
   19: <data2>
   20: HTTP/1.1 200 OK
   21: Location: this should be ignored
   22: Date: Thu, 09 Nov 2010 14:49:00 GMT
   23: Content-Length: 5
   24: 
   25: body
   26: </data2>
   27: <datacheck>
   28: HTTP/1.1 302 OK
   29: Location: http://example.net/tes t case=/6620002
   30: Date: Thu, 09 Nov 2010 14:49:00 GMT
   31: Content-Length: 0
   32: 
   33: HTTP/1.1 200 OK
   34: Location: this should be ignored
   35: Date: Thu, 09 Nov 2010 14:49:00 GMT
   36: Content-Length: 5
   37: 
   38: body
   39: </datacheck>
   40: </reply>
   41: 
   42: #
   43: # Client-side
   44: <client>
   45: <server>
   46: http
   47: </server>
   48:  <name>
   49: HTTP redirect with whitespace in absolute Location: URL
   50:  </name>
   51:  <command>
   52: http://example.com/please/gimme/662 -L -x http://%HOSTIP:%HTTPPORT
   53: </command>
   54: <features>
   55: proxy
   56: </features>
   57: </client>
   58: 
   59: #
   60: # Verify data after the test has been "shot"
   61: <verify>
   62: <strip>
   63: ^User-Agent:.*
   64: </strip>
   65: <protocol>
   66: GET http://example.com/please/gimme/662 HTTP/1.1
   67: Host: example.com
   68: Accept: */*
   69: Proxy-Connection: Keep-Alive
   70: 
   71: GET http://example.net/tes%20t%20case=/6620002 HTTP/1.1
   72: Host: example.net
   73: Accept: */*
   74: Proxy-Connection: Keep-Alive
   75: 
   76: </protocol>
   77: </verify>
   78: </testcase>

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