title: JavaScript in HP Vugen: web_submit_data
body: <p>I have a some script written on js in loadrunner. Yesterday I needed a function "web_submit_data". On C it's syntax looks like:<br><br>
      <code>int web_submit_data(const char *StepName, const char *Action, &lt;List of Attributes&gt;, ITEMDATA, &lt;List of data&gt;, [EXTRARES, &lt;List of Resource Attributes&gt;,] LAST);</code><br><br>
  To set the "List of data" I need <strong>ENDITEM</strong> constant, but I can't find it in JS Vuser.
  I tried <strong>ENDITEM</strong>, <strong>web.ENDITEM</strong>, <strong>"ENDITEM"</strong>, but its all does not works. 
  So, now my call of this function looks like:</p>
  
  <pre><code>web.submit_data("bsi.dll_14",
    "Action=http://someaddr.org/a/b/c",
    new Array(
      "Method=POST",
      "EncType=multipart/form-data",
      "TargetFrame=",
      "RecContentType=text\html"
      "Referer=http://some.ref.link.org/"
      "Snapshot=t70.inf",
      "Mode=HTML"),
    new Array(
      new String("Name=exName1"), new String("Value=val1"),
      new String("Name=exName2"), new String("Value=val2")));
  </code></pre>
  
  <p>And I got no errors for this, however sended HTTP-package does not contain data, that i tried to send.<br> So, can anybody help me with this mad function? How I should use <strong>web.submit_data</strong> in <strong>Javascript vuser</strong>?<br>
  Thanks in advance.<br></p>
  
  <hr>
  
  <p><em>P.S. Sorry for my bad English. I tried to write understandable.</em></p>