Connection between two applications - REST API

Hi, Everyone!

I have to make a connection between to Yii applications - let’s say: app A and app B.

I know, I have to use a REST API. With help of this article http://www.yiiframework.com/wiki/175/how-to-create-a-rest-api/ I implemented a REST API in my applications, but I have no idea, how to connect them.

Can you give me some advices, please?

Both apps are working on my localhost, is that not a problem?

you need to use some socket/CURL functions, or just use an extension for example this one:

http://www.yiiframework.com/extension/restclient