{"action":"created","issue":{"url":"https://api.github.com/repos/joyent/node/issues/9440","labels_url":"https://api.github.com/repos/joyent/node/issues/9440/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node/issues/9440/comments","events_url":"https://api.github.com/repos/joyent/node/issues/9440/events","html_url":"https://github.com/joyent/node/issues/9440","id":63050281,"number":9440,"title":"Problem with IPv6 addresses in http.request","user":{"login":"natewatson999","id":10189447,"avatar_url":"https://avatars.githubusercontent.com/u/10189447?v=3","gravatar_id":"","url":"https://api.github.com/users/natewatson999","html_url":"https://github.com/natewatson999","followers_url":"https://api.github.com/users/natewatson999/followers","following_url":"https://api.github.com/users/natewatson999/following{/other_user}","gists_url":"https://api.github.com/users/natewatson999/gists{/gist_id}","starred_url":"https://api.github.com/users/natewatson999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natewatson999/subscriptions","organizations_url":"https://api.github.com/users/natewatson999/orgs","repos_url":"https://api.github.com/users/natewatson999/repos","events_url":"https://api.github.com/users/natewatson999/events{/privacy}","received_events_url":"https://api.github.com/users/natewatson999/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T17:40:39Z","updated_at":"2015-03-19T17:44:09Z","closed_at":null,"body":"http.request does not allow for IPv6 addresses on Windows 8.1 x86_64 with Node version 0.10.35. The problem may exist on other platforms. \r\n\r\nHere's some sample code to test the issue:\r\nserver.js: \r\nvar http = require(\"http\");\r\nvar server = http.createServer(function(req, res){\r\n\tres.write(\"response\");\r\n\tres.end();\r\n});\r\nserver.listen(80);\r\n\r\nclient.js:\r\nvar http = require(\"http\");\r\nvar options = {};\r\noptions.port= 80;\r\n//options.host = \"0:0:0:0:0:0:0:1\";\r\noptions.host = \"127.0.0.1\";\r\noptions.method = \"GET\";\r\noptions.path = \"/\";\r\nconsole.log(\"config loaded\");\r\nvar req = http.request(options, function(res){\r\n\tvar result = \"\";\r\n\tres.on(\"data\", function(segment){\r\n\t\tresult += segment;\r\n\t});\r\n\tres.on(\"end\", function(){\r\n\t\tconsole.log(result);\r\n\t});\r\n});\r\nreq.end();\r\n\r\nIt yields this error:\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: connect ECONNREFUSED\r\n    at errnoException (net.js:905:11)\r\n    at Object.afterConnect [as oncomplete] (net.js:896:19)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joyent/node/issues/comments/83691307","html_url":"https://github.com/joyent/node/issues/9440#issuecomment-83691307","issue_url":"https://api.github.com/repos/joyent/node/issues/9440","id":83691307,"user":{"login":"natewatson999","id":10189447,"avatar_url":"https://avatars.githubusercontent.com/u/10189447?v=3","gravatar_id":"","url":"https://api.github.com/users/natewatson999","html_url":"https://github.com/natewatson999","followers_url":"https://api.github.com/users/natewatson999/followers","following_url":"https://api.github.com/users/natewatson999/following{/other_user}","gists_url":"https://api.github.com/users/natewatson999/gists{/gist_id}","starred_url":"https://api.github.com/users/natewatson999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natewatson999/subscriptions","organizations_url":"https://api.github.com/users/natewatson999/orgs","repos_url":"https://api.github.com/users/natewatson999/repos","events_url":"https://api.github.com/users/natewatson999/events{/privacy}","received_events_url":"https://api.github.com/users/natewatson999/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T17:44:09Z","updated_at":"2015-03-19T17:44:09Z","body":"I fixed the copypaste error in the error"}}