AymanZan   -  Aug 25, 2014

Hello, I'm trying to bulid small script too POST into php page and grap data from there..

For example..

using mIRC i will send data to this link " something.com/data.php?param1=daa&param2=daa (GET not POST)
is it possible to do it using POST not get?
If yes could you please provide small snippet code that i can continue working on?

Thanks alot

AymanZan  -  Aug 25, 2014

I tried this..

Mirc SIDE:

alias swrite { sockopen ayman 127.0.0.1 80 }

on *:sockopen:ayman:{
var %ver1 user=aaa&pass=test
sockwrite -n $sockname POST /mirc/index.php HTTP/1.1
sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
sockwrite -n $sockname Content-Length: $len(%ver1)
sockwrite -n $sockname host: localhost
sockwrite -n $sockname
sockwrite $sockname %ver1
}

on *:sockread:ayman:{
var %a
sockread %a
echo -a %a $+ $chr(15)
}

PHP SIDE:

<?php

$x = $_POST['user'];
$y = $_POST['pass'];

echo 'Hello world' . $x . ' ' . $y;

?>

But i get empty result

blackvenomm666  -  Aug 25, 2014

it is possible to post although you would have to talk to someone who's good at sockets for that.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.