I'm calling a server side program from a PB 2017 desktop app and getting a different result using HTTPClient verses my WinHTTP code example.
The response text returned by HTTPClient is often short, truncating a few characters off the end. I run the same server program via WinHTTP and I get the full response text.
My question is whether this is a bug in HTTPClient or maybe there is an issue with how the server side program forms the response. The Content-Type is text/plain. The response is fairly short, under 10 characters. It contains two values separated by char(11).
http://www.topwizprogramming.com/freecode_winhttp.html
It works OK for me by changing ....
lnv_http.GetResponseBody ( ls_recvdata)
- to -
lnv_http.GetResponseBody ( ls_recvdata, EncodingANSI! )
Regards ... Chris