Note that on that screenshot, there are some differences:
- the URL is way different:
AllAttachements
vsAllDocs
, but that's minor, I'm pointing it out "just in case" - the PARAMS are way different: the screenshot specifies
xpage=plain&outputSyntax=plain
and your code - not - the HEADERS are different: your code has
Accept=text\json
while screenshot hasAccept: text/javascript
Have you tried using the same params and headers?
EDIT: also, I've opened up the page from your code, and it actually is a page. After loading, it generates additional requests to
http://opencaselist.paperlessdebate.com/bin/get/XWiki/AllAttachmentsResults?xpage=plain&outputSyntax=plain&offset=1&limit=10&reqNo=1&sort=filename&dir=asc
which, if you download, results in JSON data. No headers at all, simple GET. I've just got the JSON data by simply pasting that URL into Chrome.. I think that you simply use wrong URL.