Code Monkey home page Code Monkey logo

Comments (12)

cgaylord avatar cgaylord commented on June 17, 2024

Hostname for the example is funnel.vtti.vt.edu if you want to test your DNS resolution too.

from curl.

cgaylord avatar cgaylord commented on June 17, 2024

The readme for libcurl 7.43 within this package does indicate it is built with --enable-ipv6

from curl.

cgaylord avatar cgaylord commented on June 17, 2024

read.table("http://...") gives mixed results; apparently there is some variability there as well. However, on at least some Windows hosts I can test with, I have successfully used read.table where curl fails as described above.

from curl.

jeroen avatar jeroen commented on June 17, 2024

Afaik, ipv6 support depends on the operating system. Which windows are you testing on? Can you verify that this problem exists on Windows 10 or Windows server 2008? Also what do you get for:

curl::nslookup("ipv6.test-ipv6.com")

from curl.

cgaylord avatar cgaylord commented on June 17, 2024

The systems being used are Windows 7, which otherwise has had excellent
IPv6 compatibility. I have not found a Server 2008 box or Windows 10 near
me that has R installed.

On Thu, Apr 7, 2016 at 1:36 PM, Jeroen Ooms [email protected]
wrote:

Afaik, ipv6 support depends on the operating system. Which windows are you
testing on? Can you verify that this problem exists on Windows 10 or
Windows server 2008?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#59 (comment)

Clark Gaylord
[email protected]

from curl.

cgaylord avatar cgaylord commented on June 17, 2024

Btw read.table("http....") works fine to IPv6 host on the same client.

from curl.

cgaylord avatar cgaylord commented on June 17, 2024

library(curl)
curl::nslookup("funnel.vtti.vt.edu")
[1] "2001:468:c80:a202:0:b074:0:c082"

con=curl("http://funnel.vtti.vt.edu/~cgaylord/x.txt")
readLines(con)
[1] "42"
--- netstat indicates this is using legacy IP

con=curl("http://[2001:468:c80:a202:0:b074:0:c082]/~cgaylord/x.txt")
readLines(con)
Error in readLines(con) : Couldn't resolve host name

read.table("http://funnel.vtti.vt.edu/~cgaylord/x.txt")
V1
1 42
--- netstat indicates this is using IPv6

read.table("http://[2001:468:c80:a202:0:b074:0:c082]/~cgaylord/x.txt")
V1
1 42

from curl.

cgaylord avatar cgaylord commented on June 17, 2024

curl::nslookup("ipv6.test-ipv6.com")
[1] "2001:470:1:18::119"

from curl.

cgaylord avatar cgaylord commented on June 17, 2024

On Mac:

con=curl("http://[2001:468:c80:a202::b074:0:c082]/~cgaylord/x.txt")
readLines(con)
[1] "42"

Although, ironically Mac read.table is broken:

read.table("http://[2001:468:c80:a202::b074:0:c082/~cgaylord/x.txt")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") : unable to resolve '[2001'

from curl.

jeroen avatar jeroen commented on June 17, 2024

I think it is actually a bug in libcurl. Updating libcurl for Windows seems to fix the problem. Can you try to install the new curl:

install.packages("https://github.com/jeroenooms/curl/archive/master.tar.gz", repos = NULL)

from curl.

cgaylord avatar cgaylord commented on June 17, 2024

That seems to have done it -- thanks!

con=curl(url="http://[2001:468:c80:a202::b074:0:c082]/~cgaylord/x.txt")
readLines(con)
[1] "42"

from curl.

jeroen avatar jeroen commented on June 17, 2024

OK I pushed this update to CRAN so it should be available in a day or so.

from curl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.