Thanks, I have checked that out. I have googled the subject for some time and Wikipedia is my main source of reference on any subject. I have found out you may use cURL to automate logins and simulate cookies. You may also use sockets to send packets of data. On Windows, you may emulate keyboard input and mouse input to interface with Windows browsers.
I suppose all these define how a bot is made. But cURL works only with POSTS and GETS. To really make a bot do whatever you want I guess you need to emulate keyboard input and key clicks.
Is there any way to do that on a Mac OS X in C (like in Windows)?
On Windows there is a header that allows you to simulate input, but I haven't found any for the Mac.