- Sivaprakash BKR
- PowerBuilder
- Wednesday, 10 April 2024 08:24 AM UTC
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.