My question is very simple can we get Form data values from HTTP request body of Network(DOM window).
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.
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.
Can we store results into variable/text-box!!
For example in image I have three values.
cmp :131,
biz : 2001,
biz_name :Demo + gents + tailor
can we store this values into some variable like,
var cmp = 131 
var biz = 2001,
var biz_name  = Demo gents tailor
Code for the same which will redirect me to particular page :
 var redirect = 'myurl';    
 $.extend(
 {
     redirectPost: function(location, args)
{
    var form = '';
    $.each( args, function( key, value ) {
        form += '<input type="hidden" name="'+key+'" value="'+value+'">';
    });
    $('<form action="'+location+'"                                                                                        method="POST">'+form+'</form>').appendTo('body').submit();
    }
   });
  $.redirectPost(redirect, {cmp:131,biz:2001,biz_name:"Demo gents tailor"});
Refered Links : Accessing the web page's HTTP Headers in JavaScript
How do I access the HTTP request header fields via JavaScript?
https://gist.github.com/thsutton/665306

 
     
    