I'm new to php and i cant find any good tutorial to learn cURL except [SIZE=-1]www.php.net/curl I didnt understand in cURL, how to keep logged into some site (store cookies). Can anyone write any short script which logges into any site, and then makes a post request to any page of the site being logged in? Any help would be appreciated [/SIZE]
I personally use fsockopen() to do http POST's or Get's. Here's a really basic exampls of using cURL PHP - cURL Basics As far as logging in, accepting cookies, and working on that data, tcl/tk expect might be what you're looking for but it depends on if you're doing ti from a web interface or a shell access.
CURL is more robust but any external library or classes will always be inherently slower than native PHP functions that are compiled into the core functionality.