mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
adjusted to work with the HTTP 1.1-speaking libcurl
This commit is contained in:
parent
c576e114b9
commit
9ee14644a7
@ -1,4 +1,4 @@
|
||||
http://%HOSTIP:%HOSTPORT/want/25 -o - -o -
|
||||
http://%HOSTIP:%HOSTPORT/want/26 -o - -o -
|
||||
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
looping HTTP Location: following with --max-redirs
|
||||
looping HTTP Location: following with --max-redirs, no persistance
|
||||
|
@ -1,4 +1,4 @@
|
||||
GET /want/25 HTTP/1.1
|
||||
GET /want/26 HTTP/1.1
|
||||
User-Agent: curl/7.6-pre1 (sparc-sun-solaris2.7) libcurl 7.5.2 (SSL 0.9.6) (krb4 enabled)
|
||||
Host: 127.0.0.1:8999
|
||||
Pragma: no-cache
|
||||
|
@ -1,5 +1,7 @@
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Server: test-server/fake
|
||||
Location: data/reply/25
|
||||
Content-Length: 32
|
||||
Connection: close
|
||||
|
||||
Redirect to the same URL again!
|
||||
|
@ -1,5 +1,6 @@
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Server: test-server/fake
|
||||
Location: data/reply/25
|
||||
Connection: close
|
||||
|
||||
Redirect to the same URL again!
|
||||
|
@ -1,6 +1,7 @@
|
||||
HTTP/1.1 301 Moved Permanently
|
||||
Server: fake
|
||||
Location: /moo/moo/moo/310002
|
||||
Connection: close
|
||||
|
||||
No contents
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
HTTP/1.1 301 Moved Permanently
|
||||
Server: fake
|
||||
Location: /moo/moo/moo/310002
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
|
@ -1,6 +1,7 @@
|
||||
HTTP/1.1 303 See Other
|
||||
Server: fake
|
||||
Location: /moo/moo/moo/320002
|
||||
Connection: close
|
||||
|
||||
This Location should be fetched with a GET!
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
HTTP/1.1 303 See Other
|
||||
Server: fake
|
||||
Location: /moo/moo/moo/320002
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
|
@ -1,6 +1,8 @@
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Server: test-server/fake
|
||||
Location: data/reply/25
|
||||
Content-Length: 32
|
||||
Connection: close
|
||||
|
||||
Redirect to the same URL again!
|
||||
HTTP/1.1 404 BAD BOY
|
||||
|
Loading…
Reference in New Issue
Block a user