IllusiveMan
New member
- Joined
- Feb 14, 2012
- Messages
- 4
- Programming Experience
- 3-5
I have been looking for a desktop messenger without the need to sign in and I found the perfect playing field for my self!.. though.. I've run into a major issue that I cannot comprehend..
here is the code..
Basically I set the button as the user name to message and then post a test message.. but it will not post at all.
Please HELP! Thanks in advance!
Please help, I really need this!.
Edit:
I'm trying to mimic this... but in VB.Net
here is the code..
VB.NET:
Private Sub PUSH_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PUSH.Click
Dim uri = "http://www.pushme.to/" + PUSH.Text + "/" 'Buttons name is username
Dim req As HttpWebRequest = CType(WebRequest.Create(uri), HttpWebRequest)
req.SendChunked = True
req.TransferEncoding = "gzip"
Dim pdata As String = "presentedName=TEST_NAME&text=TEST+MESSAGE" 'Test Username/Message
req.Method = "POST"
Dim encoded As New ASCIIEncoding()
Dim bytea As Byte() = encoded.GetBytes(pdata)
req.ContentType = "application/x-www-form-urlencoded"
req.ContentLength = bytea.Length
Dim stream As Stream = req.GetRequestStream()
stream.Write(bytea, 0, bytea.Length)
stream.Close()
End Sub
Basically I set the button as the user name to message and then post a test message.. but it will not post at all.
Please HELP! Thanks in advance!
Please help, I really need this!.
Edit:
I'm trying to mimic this... but in VB.Net
function pushMeTo($username, $message, $signature) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://pushme.to/' . $username . '/'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, 'message=' . urlencode($message) . '&signature=' . urlencode($signature)); curl_exec($curl); curl_close($curl); } pushMeTo('username', 'Hello world!', 'God');