Closed jimmylovestea closed 9 years ago
I've disabled all non-https interactions with that webserver because unless absolutely required, HTTPS everywhere is best practice.
Is there any reason why the proposed solution in the post by @jeroenooms isn't acceptable?
You an either use:
library(curl)
xmltext <- readLines(curl("https://web.ohmage.org/mobilize/resources/ids/data/mountains.xml"), warn = FALSE)
mountains <- xmlParse(xmltext)
Or:
library(httr)
req <- GET("https://web.ohmage.org/mobilize/resources/ids/data/mountains.xml")
mountains <- content(req)
Discussed with @hongsudt, it's out of the scope to teach kids this extra step needed for https and R, web.ohmage.org will now serve non-https requests to urls/files under http://web.ohmage.org/mobilize/resources/ids/data/
:)
Cause It's important we teach them something that won't work in practice :P
There seems to be an issue using the
XML
package in R to read .xml files on the https version of ohmage. The problem seems to be an inadequacy in R which is causing some of the code we'd like to use in the labs to fail.Examples that don't work:
Example that does work:
@stevenolen Is it possible to open the port to the
http://web.ohmage.org/mobilize/resources/ids/data/mountains.xml
site?