Discussion:
WinHttp5.1 Chunked response is not readable
(too old to reply)
p***@gmail.com
2016-05-06 11:47:24 UTC
Permalink
I am using MS WinHttp 5.1; am trying to receive the "chunked response" type content.

In Fiddler, It shows in the response header: Transfer-Encoding: chunked. And in the TextView shows some special character sequence. The same junk characters am receiving in the winhttp's response text. So, VBA is not able to read them.


Now, If I click on Decode in Fiddler, am able to see the text as plain in TextView.

But, How can i receive them as plain or able to decode them in the VBA code?

I already tried setting below headers; no success.

Content-Type: application/x-www-form-urlencoded text/xml; charset=ISO-8859-1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Accept-Encoding: gzip, deflate, chunked
Accept-Language: en-us
TE: chunked
User-Agent: Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)
Data-Type: text/xml; charset=ISO-8859-1
x-novinet: v1.2


Any help is greatly appreciated.
j***@gmail.com
2016-11-10 18:17:58 UTC
Permalink
Post by p***@gmail.com
I am using MS WinHttp 5.1; am trying to receive the "chunked response" type content.
In Fiddler, It shows in the response header: Transfer-Encoding: chunked. And in the TextView shows some special character sequence. The same junk characters am receiving in the winhttp's response text. So, VBA is not able to read them.
Now, If I click on Decode in Fiddler, am able to see the text as plain in TextView.
But, How can i receive them as plain or able to decode them in the VBA code?
I already tried setting below headers; no success.
Content-Type: application/x-www-form-urlencoded text/xml; charset=ISO-8859-1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Accept-Encoding: gzip, deflate, chunked
Accept-Language: en-us
TE: chunked
User-Agent: Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)
Data-Type: text/xml; charset=ISO-8859-1
x-novinet: v1.2
Any help is greatly appreciated.
Hi Prabu
I have the same problem, with the difference being that the computer besides this one, decodes it properly, i have been hitting my head trying to figure out what file is different and makes it possible for it to work.

have you figured it out ?

thanks a lot
Juanjo

Loading...