javascript: var uname = 'myUname'; var apikey = 'blahblahblah'; var snipnick = 'c2dmwannabe'; var snipPasscode = '123'; snipnick = encodeURIComponent(snipnick ); var httpReq; if (typeof XMLHttpRequest != "undefined") { httpReq = new XMLHttpRequest(); } else{ try { httpReq = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { httpReq = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { throw new Error("This browser does not support XMLHttpRequest."); } } } var posttext; posttext = ''; posttext += 'sniplink=' + encodeURIComponent(document.URL) + '&'; posttext += 'snipnick='+ snipnick +'&'; posttext += 'snipuser='+ uname +'&'; posttext += 'snipapi='+ apikey +'&'; posttext += 'sniptitle=C2DMwannabe&'; posttext += 'snipowner=&'; posttext += 'snipformat=simple&'; posttext += 'snipaction=UPDATE&'; posttext += 'snipcurrentnick='+ snipnick +'&'; posttext += 'snipresetcount=&'; posttext += 'snippk='+ snipPasscode; httpReq.open("POST", "http://snipurl.com/site/getsnip", false); httpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); httpReq.send( posttext ); httpReq = null;