getURLAsynchronous not returning headers
asieira opened this issue · comments
If I set headers=T
in getURL and getURLAsynchronous I get very different results.
getURL clearly honors that option:
> resp = getURL("http://www.google.com", header=T, .opts=list(header=T))
> str_sub(resp, 1, 100)
[1] "HTTP/1.1 302 Found\r\nLocation: http://www.google.com.br/?gfe_rd=ctrl&ei=yeMZU8CCC-yU8QfHqIHgBQ&gws_rd"
Wheres getURLAsynchronous does not:
> resp = getURLAsynchronous("http://www.google.com", header=T, .opts=list(header=T))
> str_sub(resp, 1, 100)
[1] "<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n<TITLE>302 Moved</TIT"