title: Workaround possible for cURL and Javascript?
body: <p>Everything was going great <a href="https://stackoverflow.com/questions/9985019/curl-to-submit-form-with-rotating-key">in my previous help request thread</a>.  I was on the correct track to get around a CSRF, but needed to be pointed in the right direction.  I received great help and even an alternate script used to log into Google's Android Market.  Both my script and the one I altered to match my form is get hung up at the same point.  Apparently cURL cannot process JS, is there any way to work around the form being submitted with submitForm() without changing the form?</p>
  
  <p>Here is the code for the SubmitForm function</p>
  
  <pre><code>function submitForm(formObj, formMode) {
      if (!formObj)
          return false;
      if (formObj.tagName != "FORM") {
          if (!formObj.form)
              return false;
          formObj = formObj.form;
      }
      if (formObj.mode)
          formObj.mode.value = formMode;
      formObj.submit();
  }
  </code></pre>
  
  <p>Here is the code for the submit button -</p>
  
  <pre><code>&lt;a class="VertMenuItems" href="javascript: document.authform.submit();"&gt;Submit&lt;/a&gt;
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/9985019/curl-to-submit-form-with-rotating-key">Here is a link to my last question in case more background information is needed.</a></p>