Wednesday, March 19, 2014

curl + IPv6: common errors using direct IP

FAIL!
$ curl -6 "http://a00:1450:4007:805::1018/" 
curl: (3) IPv6 numerical address used in URL without brackets 
FAIL!
$ curl -6 "http://[a00:1450:4007:805::1018]/"
curl: (3) [globbing] bad range in column 13
BINGO!
$ curl -g -6 "http://[2a00:1450:4007:805::1018]/"

302 Moved 
The document has moved

No comments:

Post a Comment