Here is one thing I haven't been able to figure out. Luckily every time I've run into it, I've found a workaround. However, I have not been able to figure out how to use curl to make a multipart post.
I've seen this same question somewhere a few months ago. Was that you crypt?
Anyways, unless I am completely misunderstanding you, you want to post some info
like username, then you have to click Continue, and then you get another page with
another form that asks for more info, right?
Post the info for the first page.
The server you are posting to then sends back the next page and your code should
parse it for the variable that it wants, (while testing i have the returned-page printed
to my console and printed to a file so I can look it over).
So, you script, still running, not stopping, parses the second page for variables and
posts them to the correct URL.
The same process could go on and on, it's still the same logic in the code.
The thing is, when finished and working, your script can not stop in between the
form pages unless it were to save previous variables to disk then read them in when
it starts up again, which is nuts.
Bompa