Get value of Form data from HTTP request body
<p>My question is very simple can we get Form data values from HTTP request body of Network(DOM window).</p>

<p>As you can see in image there is Form data I wanted to get those data and store that into some local variable on same page.</p>

<p>I am able to get and store HTTP headers value but whenever I tried to get Form data it returns NULL. Can anyone confirm even its possible.</p>

<p>Can we store results into variable/text-box!!</p>

<p>For example in image I have three values.</p>

<pre><code>cmp :131,
biz : 2001,
biz_name :Demo + gents + tailor
</code></pre>

<p>can we store this values into some variable like,</p>

<pre><code>var cmp = 131 
var biz = 2001,
var biz_name  = Demo gents tailor
</code></pre>

<p>Code for the same which will redirect me to particular page :</p>

<pre><code> var redirect = 'myurl';    
 $.extend(
 {
     redirectPost: function(location, args)
{
    var form = '';
    $.each( args, function( key, value ) {
        form += '&lt;input type="hidden" name="'+key+'" value="'+value+'"&gt;';
    });
    $('&lt;form action="'+location+'"                                                                                        method="POST"&gt;'+form+'&lt;/form&gt;').appendTo('body').submit();
    }
   });

  $.redirectPost(redirect, {cmp:131,biz:2001,biz_name:"Demo gents tailor"});
</code></pre>

<p>Refered Links : 
<a href="https://stackoverflow.com/questions/220231/accessing-the-web-pages-http-headers-in-javascript">Accessing the web page&#39;s HTTP Headers in JavaScript</a></p>

<p><a href="https://stackoverflow.com/questions/220149/how-do-i-access-the-http-request-header-fields-via-javascript">How do I access the HTTP request header fields via JavaScript?</a></p>

<p><a href="https://stackoverflow.com/questions/19440768/jquery-get-http-headers">jquery - get http headers</a></p>

<p><a href="https://gist.github.com/thsutton/665306" rel="nofollow noreferrer">https://gist.github.com/thsutton/665306</a></p>

<p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Headers" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/Headers</a></p>

<p><a href="https://i.stack.imgur.com/lvQ64.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lvQ64.png" alt="enter image description here"></a></p>