Would it work on something like this, if you were to do..
sockwrite -n $sockname GET /browse/$2 HTTP/1.1
With $2 obviously being the second parameter in the users input? like..
.search blah
Being 'blah'? To make it /browse/blah?