p***@gmail.com
2016-05-06 11:47:24 UTC
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.
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.