On Sat, Nov 16, 2013 at 8:32 PM, Dr. Kent L. Miller kent.l.miller@alumni.cmu.edu wrote:
When I compare the following two commands
(shell)$ curl --ipv4 --verbose http://ftpmirror.your.org/pub/wikimedia/dumps/ (shell)$ curl --ipv6 --verbose http://ftpmirror.your.org/pub/wikimedia/dumps/
The first reports "HTTP/1.1 301 Moved Permanently" The second reports "HTTP/1.1 200 OK"
Has anyone else noticed this?
I don't see that. (but I also never compared them before)
See below.
-Jeremy
$ for i in ipv{4,6}; do echo "$i:"; curl -vsL --"$i" http://ftpmirror.your.org/pub/wikimedia/dumps/ 2>&1 >/dev/null | egrep -e '^< HTTP/1' -e '^< Location: ' -e $'^* (Connected to |Issue another request to this URL:|getaddrinfo(3) failed for|Couldn't resolve host)'; done ipv4: * Connected to ftpmirror.your.org (204.9.55.82) port 80 (#0) < HTTP/1.1 301 Moved Permanently < Location: http://dumps.wikimedia.your.org/ * Issue another request to this URL: 'http://dumps.wikimedia.your.org/' * Connected to dumps.wikimedia.your.org (204.9.55.82) port 80 (#1) < HTTP/1.1 200 OK ipv6: * Connected to ftpmirror.your.org (2001:4978:1:420::cc09:3752) port 80 (#0) < HTTP/1.1 301 Moved Permanently < Location: http://dumps.wikimedia.your.org/ * Issue another request to this URL: 'http://dumps.wikimedia.your.org/' * Connected to dumps.wikimedia.your.org (2001:4978:1:420::cc09:3752) port 80 (#1) < HTTP/1.1 200 OK