This might be the resource you need to learn more about curl/ajax.
This might be the resource you need to learn more about curl/ajax.
^ Not necessary
AJAX calls can be replicated by curl even though it does not execute the javascript itself. You just need to emulate what the javascript is doing. To see what it is doing, download a FF plugin called Live HTTP Headers (google it). Go to the website, open Live HTTP Headers, and submit the form. You will see all the requests happening. You need to find the right one - usually a POST request - and execute that with curl.
Boom, instant AJAX.
one of the best method is to install firebug and use it.
P.s firebug is a plugin for firefox