xmlVal = "Whatever=value"; xmlHttp.open("POST", 'my_prog.pl', true); xmlHttp.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded"); xmlHttp.send(xmlVal);