Or you can use sockets to open a connection and POST your variables after the GET document HTTP/1.1 header.
curl is definitely a lot easier if you're on linux/unix/bsd/etc.
wget is also like curl and does the job fine as well. I'm not really sure what the advantages over using wget vs. curl are, but I doubt there are any. So use either one you have.
Richard meant using the compiled curl extension. But you may very well use the binaries on your system using the system() or exec() command.
For help on using curl or wget, see their web site or from the command line do: man curl or man wget or curl --help or wget --help
-sridhar