I am trying to compose an httr::GET query where I must use a bracketed (array) query where the url resembles:
#target = "http://example.com?abc[]=123"
This strategy does not seem to work:
baseurl = "http://example.com"
qy = list(abc="123")
httr::GET(baseurl,query=qy)
R complains about invalid characters if I try:
qy = list(abc[]="123")
See also: Is array syntax using square brackets in URL query strings valid?
You should be able to use