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.