Hi,
I am trying to write program somewhat similar to wget. It is supposed to retrieve documents from the internet in a batch job without user interaction and I am kinda stuck. I tried to start from the example called download in poco-1.3.2-ssl/NetSSL_OpenSSL/samples:
a) When the Poco: :Net: :Context is created, it asks the user for the password for the privateKeyFile. Do I really need a privateKeyFile (wget does not seem to need one)? If so, can I prevent this password dialog from taking place?
b) Similar question about the caLocation. Can I live without it?
c) When the connection to an HTTPS server is established, the user gets asked if he wants to accept the server certificate. Is there a way around this?
The HowTo on NetSSL indicates that there are options, but the privateKeyFile, the caLocation and the user interaction always seem to be present.
The Networking tutorial (FTPClient) indicates that adding HTTPS support to an application rather easy, but the tutorial does not work for https-URLs. It throws an exception:
Null pointer: _pInstance in file "/home/rbock/temp/poco-1.3.2-ssl/Util/include/Poco/Util/Application.h", line 422
Regards,
Roland





