1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

adjusted to work with the HTTP 1.1-speaking libcurl

This commit is contained in:
Daniel Stenberg 2001-03-12 12:45:12 +00:00
parent c576e114b9
commit 9ee14644a7
10 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
http://%HOSTIP:%HOSTPORT/want/25 -o - -o -
http://%HOSTIP:%HOSTPORT/want/26 -o - -o -

View File

@ -1 +1 @@
looping HTTP Location: following with --max-redirs
looping HTTP Location: following with --max-redirs, no persistance

View File

@ -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

View File

@ -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!

View File

@ -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!

View File

@ -1,6 +1,7 @@
HTTP/1.1 301 Moved Permanently
Server: fake
Location: /moo/moo/moo/310002
Connection: close
No contents

View File

@ -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

View File

@ -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!

View File

@ -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

View File

@ -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