Hello,
Using PB 2022 R3 b 3289, HTTPClient
Trying to send multi-part data.
1. Working fine in Windows 10
2. Not working in Windows 7 - Returns li_ret = -19
3. Not working in Windows Server 2012 R2 - Returns li_ret = -4
Code:
lo_client = Create HTTPClient
lo_client.ClearRequestHeaders()
lo_client.SetRequestHeader("Accept", "*/*")
lo_client.SetRequestHeader('Content-Length', String(Len(lb_multipart)))
lo_client.SetRequestHeader("Content-Type", "multipart/form-data; boundary=" + ls_BOUNDARY)
ls_url = "https://app.bulkwise.in/api/send/whatsapp"
li_ret = lo_client.SendRequest('Post', ls_url, lb_multipart)
Seems -19 is undocumented and -4 is timed out.
We have used other API's that works fine in Windows 7, issue is only in this API.
Where can I find what -19 error means? What can be done to rectify this error, if possible.
I know PB 2022 R3 is not supported for Windows 7 and Windows Server 2012 R2 [ no citrix ]. Since other API's works, I doubt whether anything could be done to make it to work in these OS also.
Tried removing below line, that sets' the content length, still the same issue:
lo_client.SetRequestHeader('Content-Length', String(Len(lb_multipart)))
Happiness Always
BKR Sivaprakash
1. We tried other https api's / sites also. It is working fine in windows 7.
2. Still your link gave us one more tool, MicrosoftEasyFix51044.msi. I couldn't understand what it does, as we couldn't find any registry entries created, as mentioned in the page.
Still the magic happened.
Yes, now we could send WhatsApp messages using the API from Windows 7.
Thanks a lot.