1. Praveen Rajarao
  2. PowerBuilder
  3. Thursday, 16 May 2019

Hello

I'm trying to use the inet/internetresult objects and the PostURL function. Everything works fine if I use GetURL, or if I try to use PostURL.

However if I use PostURL with a "HTTPS" it fails with a -5 (Unsupported secure (HTTPS) connection attempted). This is because I cannot specify the security protocol of TLS1.0 in my PostURL function. 

Question: Is there a workaround for this in PB12.5?

I saw an article by Bruce regarding new option for OAuth to set the AccessToken. Is this the only option to migrate to higher version of PB? 

https://www.brucearmstrong.org/2018/08/powerbuilder-2017-r3-new-feature-oauth.html

I have tried to use MSXML object. It works fine for a single call, but it fails when we do a bulk operation. (batch)

Any help on this? 

 

Accepted Answer
Chris Pollach Accepted Answer Pending Moderation
2
Votes
Undo

Hi Praveen;

  The iNet object does not support HTTPS nor the newer TLS 1.1 or higher protocols. You would need to switch over to the new HTTPClient object class in Appeon PB2017R3 or higher to use those features within PB.

  You might want to have a look at Roland's replacement code and see that works under PB 12.5.x ... http://www.topwizprogramming.com/freecode_winhttp.html

  You could also try this alternative as well in PB 12.x ... https://stackoverflow.com/questions/44957578/how-to-make-powerbuilder-12-5-web-service-tls-1-2-compliant

HTH

Regards ... Chris

 

Comment
There are no comments made yet.
  1. Thursday, 16 May 2019
  2. PowerBuilder
  3. # Permalink
Praveen Rajarao Accepted Answer Pending Moderation
0
Votes
Undo

Hello Chris,

Thanks for such a prompt response. 

I could get it to work using Roland's approach. The second option looks more like hack to get around to .NET4.5. 

Thanks again

Praveen

Comment
There are no comments made yet.
  1. Thursday, 16 May 2019
  2. PowerBuilder
  3. # 1
Praveen Rajarao Accepted Answer Pending Moderation
0
Votes
Undo

Hello Chris / Roland,

I am now using the WinHTTP to call HTTPS and it works fine in the dev environment. 

However, the PROD environment is a little different since we have VDI for all our users. When we are testing on VDI, it gives the below error. Any idea what might be causing this? Is there any DLL that needs to be registered?

PostURL Error: 12175 WinHTTPSendRequest:

A Security error occurred. 

Thanks

Praveen

Comment
There are no comments made yet.
  1. Tuesday, 11 June 2019
  2. PowerBuilder
  3. # 2
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.