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:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. [?] Send using POST : httpwebrequests
How do i send stuff using POST in httpwebrequests?

i'm confused on what to do


i tried changing

code:
httpwr.open("GET" [...]

to

code:
httpwr.open("POST" [...]

but it does not work :(
[quote]
Ultimatess6
: What a noob mod
06-04-2007 10:43 PM
Profile PM Web Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [?] Send using POST : httpwebrequests
look at Twitter Plus source  :D
06-05-2007 02:22 AM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Send using POST : httpwebrequests
quote:
Originally posted by felipEx
look at Twitter Plus source  :D

it didn't work :(

This post was edited on 06-05-2007 at 02:49 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
06-05-2007 02:42 AM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: [?] Send using POST : httpwebrequests
just replacing "GET" with "POST" should work, but to actually post data then you will have to look at the source code of the likes of Twitter Plus or something to see how it is done.  Maybe you are trying to post the incorrect way, would you mind giving us some more information to be able to help?
[Image: markee.png]
06-05-2007 03:33 AM
Profile PM Find Quote Report
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
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
34 / Male / Flag
Joined: Oct 2004
RE: [?] Send using POST : httpwebrequests
My Plus!Mail script uses a technique similar to felipEx's and it works fine...
06-05-2007 06:47 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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