Code:
on *:text:!sabdetails*:*: {
 set %un $2
 sockopen bot 192.168.1.2 6080
} 

alias bot sockopen bot 192.168.1.2 6080
; Why this alias? It doesn't set %un, might be ok if it's for testing now and you didn't unset %un.

on *:sockopen:bot: { 
  sockwrite -n bot GET http://192.168.1.2:6080/s3h/getdetails.php?name= $+ %un [color:green]HTTP/1.0
  sockwrite bot $str($crlf,2)[/color]
} 
on 1:sockread:bot: {
  if ($sockerr > 0) return
  :nextread
  sockread %bot
  if ($sockbr == 0) return
  if (%bot == $null) %bot = -
  echo -a %bot
  goto nextread
}

If it still doesn't work, download ethereal (or some other sniffer) and find out what your script sends, and what a browser sends. Then find out what the differences are and see if they are preventing the script or not. Not all headers from your browser are necessary, some can even make it more difficult (chunked encoding, deflate, ...)