Similar to `wget`,
cURL is an efficient C executable with options for POST upload via both content types
application/x-www-form-urlencoded and
multipart/form-data, and also supports HTTP compression. You can build a command line for
system(), or use the libcurl's Perl interface module
WWW::Curl. Available for Linux and Win32, and pre-installed on OS X. I use cURL every day!