Website communication

zx9r

New Member
Hi
I am running progress 9.1D, I need to post values(variables) to a website and recieve them and I have no iea how to do it, and if it can be done at all? :confused:

An example of the site is "https://www.mysite.com/serve/process?<protocol ver= 3.0" pgid="123456"><authx="me" passwrd="pword"/> </protocol>

Please, if someone could help by way of examples or any other suggestions would be highly appreciated.
 

ddavis

New Member
You want to look in the knowledge base for the solution that allows you to use sockets to communicate with a web server.

Basically, you want to open a socket to a webserver and write the stream of data to it and read the return stream from it. If you've never used sockets before, you'll have fun with this.

There's a pretty comprehensive example in the kb. I'm not sure, however, if you can do https with v9.1d sockets though. You might have to look for another solution.

kb 20011
kb 19881

Great stuff.
 

waltw1207

New Member
I am looking for a similar solution. I am working with OpenEdge 10.2B07 and need to communicate with a webserver. I need to pass parameters to a website and receive back information from that website. The return is a form post from the website that I need to load into my Progress database. Any help would be GREATLY appreciated.
 

Cecil

19+ years progress programming and still learning.
Have a look at using cURL command tool. You will have to shell out to the OS to run the command. cURL will handle all the complexities around making a web connection i.e. HTTPS and redirects etc.

I've used cURL it to access Google's APIs.

Example of using the cURL command:
Code:
curl --data "param1=value1&param2=value2" http://hostname/resource
 
Last edited:

RealHeavyDude

Well-Known Member
You might also try wget which - for me - works better. In general I found it way easier to have such a utility handle all the SSL handshake stuff, especially when SSL client certificates are involved, instead of programming against a socket which requires SSL in the ABL.

Heavy Regards, RealHeavyDude.
 

waltw1207

New Member
Have a look at using cURL command tool. You will have to shell out to the OS to run the command. cURL will handle all the complexities around making a web connection i.e. HTTPS and redirects etc.

I've used cURL it to access Google's APIs.

Example of using the cURL command:
Code:
curl --data "param1=value1&param2=value2" http://hostname/resource
 
Top