I want to obtain values from a unknown form and SUBMIT them to another URL. The problem is that I don't know the names of the form variables, or even how many variables there is to be posted. I figure I can't use SUBMIT to post these values, since SUBMIT takes names and values of variables as arguments.
However, I believe the sollution could be adding HTTP headers containing the data, but I'm not too much of an HTTP expert to figure this out. Any suggestions?
<a name=formpost PUBLIC>
<varinfo LIST CONTENT> <!-- obtain names of variables -->
<LOOP $vars>
<getvar $vars>
<urlcp header $vars $ret> <!-- this doesn't work, but it's probably not the correct HTTP syntax -->
</LOOP>
<submit METHOD=post URL=$theurl var=val> <!-- this is the problem. SUBMIT must have names and values, and I don't know how many variables there are>
<!-- fetch, format and display results -->
</a>
However, I believe the sollution could be adding HTTP headers containing the data, but I'm not too much of an HTTP expert to figure this out. Any suggestions?
<a name=formpost PUBLIC>
<varinfo LIST CONTENT> <!-- obtain names of variables -->
<LOOP $vars>
<getvar $vars>
<urlcp header $vars $ret> <!-- this doesn't work, but it's probably not the correct HTTP syntax -->
</LOOP>
<submit METHOD=post URL=$theurl var=val> <!-- this is the problem. SUBMIT must have names and values, and I don't know how many variables there are>
<!-- fetch, format and display results -->
</a>