I am trying to open a https site with POST method to include ID and password to access the https site and open the site on the default internet browser. The POST I tried to use HttpClient and sendRequest method. But I cannot make it works. The return code from SendRequest is -2.
Is there a sample code that I can use? We is using PowerBuilder 2017 R3 and deploy the code as a web application in PowerServer.
Thanks,
Jon
Are you give me a example on how to do it? The functions on httpclient object seem don't have one can display a web page.
Thanks,
Jon
The HTTPClient can only POST with a RESTFul Web Service. No Internet browser interaction is possible with that object class. You would need to use the iNET object for that. The iNET object has the POSTURL() command but cannot support HTTPS communication though.
I think that your best hope might be to use a 3rd party control at this time for this type of implementation.
FYI: https://www.example-code.com/powerbuilder/http_post_json.asp
Regards ... Chris
Thank you for those information.
Jon