Dusan,
This can be done with PHP4 using the curl extension.
I believe that there is also a new SSL extension coming in 4.0.4, but I may be mistaken.
See http://www.php.net/manual/ref.curl.php
for more info.
Bye,
Matt B
PS you can also get a command line version of CURl that works with PHP3 - I have used it before with much success.