1. Sivaprakash BKR
  2. PowerBuilder
  3. 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

 

Accepted Answer
Arthur Hefti Accepted Answer Pending Moderation
  1. Thursday, 11 April 2024 09:19 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi

on your sample http works but https not. This might be related to TLS versions supported by Windows. Check out the following URL and give it a try: https://woshub.com/enable-tls-1-2-windows/

Regards
Arthur

Comment
  1. Sivaprakash BKR
  2. Thursday, 11 April 2024 12:26 PM UTC
Thanks Arthur,

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.

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 April 2024 15:22 PM UTC
  2. PowerBuilder
  3. # 1

Hi BKR ;

  Please note that PB 2022 R3 is not certified for use with either W7, W8, W8.1 or W2012 as these O/S's have been deprecated.

FYI:  https://docs.appeon.com/pb/whats_new/Discontinued_Obsolete_features.html

Regards ... Chris

Comment
  1. Sivaprakash BKR
  2. Thursday, 11 April 2024 05:21 AM UTC
Thanks Chris,

As I mentioned in my original post, I know that PB 2022 R3 is not certified to work in Windows 7. But



But this API works in Windows 7.

ls_api = 'http://192.168.1.25/develop/basecommon/country/insert'

li_ret = lo_client.SendRequest('Post', ls_api, ls_query_encrypted)



And this API doesn't work in Windows 7

ls_url = "https://app.bulkwise.in/api/send/whatsapp";;

li_ret = lo_client.SendRequest('Post', ls_url, lb_multipart) => li_ret = -19 in WIndows 7



I think, if one command fails to work in Windows 7, that should be case for any URL's. Why this works in one case and not in another?

  1. Helpful
  1. Sivaprakash BKR
  2. Thursday, 11 April 2024 07:58 AM UTC
I tried with more API's. So far

"https://app.bulkwise.in/api/send/whatsapp";;;

alone is not working in Windows 7 / PB 2022 R3 combo.



The same API works fine in Postman [ WIndows 7]. I confirmed with the developer about any restrictions while using it from Windows 7. They said NO.

I think it's weird.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.