mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2005
Posts: 6
U
unseen Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jul 2005
Posts: 6
Hello,

I've been trying to make something to send data to a website (localhost for the moment). What I have is (this is for testing purpose):

Code:
  
alias socktest {
  /sockopen Ysondre 127.0.0.1 1337
}

on *:sockopen:Ysondre:{ 
  notice $me $sockname connection established!
  sockwrite -n $sockname POST /test.php HTTP/1.1
}


When I type /socktest I get the notification but I also get a * /sockwrite: 'Ysondre' not connected (line 13, script1.mrc).
I don't get it, the sock is opened, but not the connection?

Anyone can help me?
And yes, I made my webserver on port 1337 cause my ISP blocks 80 frown

Joined: Jul 2005
Posts: 6
U
unseen Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jul 2005
Posts: 6
I've been playing with this a lot.

Code:
 alias socktest {
  /sockopen Ysondre localhost 1337
}

on *:sockopen:Ysondre:{ 
  notice $me $sockname connection established!
  sockwrite -n $sockname /test.php HTTP/1.1
}

on *:sockread:Ysondre:{
  sockread %a
  notice $me %a
}
 


Returns me:

Your browser sent a request that this server could not understand.


Link Copied to Clipboard