File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1109
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: # Test that the fragment is not send as part of the path.
    3: <info>
    4: <keywords>
    5: HTTP
    6: CURLOPT_URL
    7: </keywords>
    8: </info>
    9: 
   10: # Server-side
   11: <reply>
   12: <data>
   13: HTTP/1.1 200 OK
   14: Content-Length: 6
   15: 
   16: hello
   17: </data>
   18: </reply>
   19: 
   20: # Client-side
   21: <client>
   22: <server>
   23: http
   24: </server>
   25:  <name>
   26: HTTP GET with URL that contains fragment after the path
   27:  </name>
   28:  <command>
   29: http://%HOSTIP:%HTTPPORT/1109#test
   30: </command>
   31: </client>
   32: 
   33: 
   34: # Verify data after the test has been "shot"
   35: <verify>
   36: <strip>
   37: ^User-Agent:.*
   38: </strip>
   39: <protocol>
   40: GET /1109 HTTP/1.1
   41: Host: %HOSTIP:%HTTPPORT
   42: Accept: */*
   43: 
   44: </protocol>
   45: </verify>
   46: </testcase>

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