using curl with shell script.

hi

please help me out here,

i want to use curl command in shell script to test web pages,

what i have is an opening page, when i click on a button on opening page, the next page comes up and then i have to upload a file n then click another button to submit and then comes the output page, where i have to click that button to download the output.

Please let me know how i can do it in shell when nesting of curl is not allowed.