When I visit http://musicbrainz.org/ws/2/artist/?query=artist:Sun+Ra in my web browser I get the kind of response I'm expecting.
But when I
require(httr)
GET('http://musicbrainz.org/ws/2/artist/?query=artist:Sun+Ra') -> sun.ra
content(sun.ra)
>>> NULL
the response body is empty, even though sun.ra
got status 200:
Response [http://musicbrainz.org/ws/2/artist/?query=artist:Sun+Ra]
Date: 2014-10-11 17:26
Status: 200
Content-type: application/json; charset=utf-8
<EMPTY BODY>
Does httr
have a problem with "naked" XML responses?
This XML file does not appear to have any style information associated with it.
(I actually think I've figured out the answer, just still going to post the question and answer myself in case someone else has the same problem later…)