Open
Description
I just started using VBA-Web in a corporate environment. I noticed I was getting JSON parse errors (11000) on the HTTP header.
It turned out that this is because our proxy also provides its own header. Here's the beginning of the content:
HTTP/1.1 200 Connection Established
Proxy-Agent: Zscaler/6.0
HTTP/1.1 200 OK
Content-Length: 584929
Content-Type: application/json; charset=utf-8
X-RateLimit-Limit: 100000
X-RateLimit-Remaining: 99998
X-RateLimit-Reset: 1516764010
X-Powered-By: ASP.NET
Date: Tue, 23 Jan 2018 16:39:09 GMT
....<JSON CODE>...
The problem was that VBA-Web attempted to parse JSON after the first empty line, not the second.
I added a function that checks if the text after the first empty line starts with "HTTP", if so it removed everything up to that :). I just wanted to let you know that this can happen sometimes. It seems to work right now, not getting parse errors anymore.
I can submit my function if you like but I'm not sure if my solution is the way you'd want to deal with this, it's more like a quick fix.