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¶m2=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
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