Comments (12)
Hostname for the example is funnel.vtti.vt.edu if you want to test your DNS resolution too.
from curl.
The readme for libcurl 7.43 within this package does indicate it is built with --enable-ipv6
from curl.
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.
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.
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.
Btw read.table("http....") works fine to IPv6 host on the same client.
from curl.
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 IPcon=curl("http://[2001:468:c80:a202:0:b074:0:c082]/~cgaylord/x.txt")
readLines(con)
Error in readLines(con) : Couldn't resolve host nameread.table("http://funnel.vtti.vt.edu/~cgaylord/x.txt")
V1
1 42
--- netstat indicates this is using IPv6read.table("http://[2001:468:c80:a202:0:b074:0:c082]/~cgaylord/x.txt")
V1
1 42
from curl.
curl::nslookup("ipv6.test-ipv6.com")
[1] "2001:470:1:18::119"
from curl.
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.
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.
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.
OK I pushed this update to CRAN so it should be available in a day or so.
from curl.
Related Issues (20)
- 'Remote file not found' if SMB path has Unicode characters HOT 6
- Error in curl::handle_setopt(handle, .list = req$options): Option seekfunction (20167) has unknown or unsupported type. HOT 2
- form_data documentation is lacking
- parse_headers throws an error when a site responds with an empty header HOT 2
- Out of memory errors for libcurl ≥ 7.71.0 HOT 1
- FTP directory created successfuly, but curl returns with error HOT 3
- Feature request: Use environment variable `CURL_CA_BUNDLE` if set HOT 14
- inconsistent SSL version in vignette
- Allow users to pass pool object in `multi_download()`
- Use httpuv::randomPort() in curl_echo
- Why is curl_echo() slow sometimes HOT 2
- How to resolve "SSL: no alternative certificate subject name matches target host name '<proxy.server.address>'"
- httpuv delays in curl_echo on Linux HOT 1
- Can't get all bytes received before RST HOT 1
- installation warning: skipping pax global extended headers HOT 1
- Sudden negotiate error with 5.2.1
- Xcode Run on ios with Undefined symbol error HOT 1
- Support for request rate limiting? HOT 1
- stubbed version for (non)use in webr installs requiring curl HOT 3
- curl failure with Apple M Series and macOS Sonoma 14.5 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl.