What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Send using POST : httpwebrequests

[?] Send using POST : httpwebrequests
Author: Message:
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [?] Send using POST : httpwebrequests
it works fine for me :)

code:
<?php
foreach($_POST as $nombre_campo => $valor){
    echo "Var " . $nombre_campo . " = $valor \n";
}
?>


code:
function OnEvent_Initialize(MessengerStart){
    var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    xmlHttp.open("POST", "http://felipex.net/test_posting.php");
    xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlHttp.send("a=1&b=2&c=3");

xmlHttp.onreadystatechange = function(){
if (xmlHttp.readyState == 4) {
if (xmlHttp.status == 200) {
    Debug.Trace("Response: \n" + xmlHttp.responseText);
} else {
    // Error...
    }
}
}

}


This post was edited on 06-05-2007 at 04:23 AM by felipEx.
06-05-2007 04:18 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Send using POST : httpwebrequests - by roflmao456 on 06-04-2007 at 10:43 PM
RE: [?] Send using POST : httpwebrequests - by felipEx on 06-05-2007 at 02:22 AM
RE: [?] Send using POST : httpwebrequests - by roflmao456 on 06-05-2007 at 02:42 AM
RE: [?] Send using POST : httpwebrequests - by markee on 06-05-2007 at 03:33 AM
RE: [?] Send using POST : httpwebrequests - by felipEx on 06-05-2007 at 04:18 AM
RE: [?] Send using POST : httpwebrequests - by Volv on 06-05-2007 at 06:47 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On