Connect to internet connection
Hellow, for example i have internet connection, how can i connect it, if i know login and password?
Advance many thanks for your help!
Can you be a little more clear in what you're trying to do? What type of internet connection? What type of network service are you trying to access? A web site? Ftp? Some custom client/server application?
I'm afraid without more detail you're not going to get a lot of help. :-)
I try to do something like this
Already have a ready connection to the Internet, simply enter your login and password
Either you are using QFtp and QHttp for establishing the connection. However, both are deprecated.
Qt's recommendation is to use "QNetworkAccessManager":http://doc.qt.nokia.com/4.7/qnetworkaccessmanager.html
You need to use "QAuthentificator":http://doc.qt.nokia.com/4.7/qauthenticator.html#QAuthenticator
As i understand QAuthenticator use when i was login in the some server, how can i login in system connection with QAuthenticator?
I'm still a little unsure of the scenario. Are you using a system whose ISP requires you to authenticate your internet connection before any network access is allowed? Or trying to access an internet server which needs authentication on an existing network connection?
bq. Are you using a system whose ISP requires you to authenticate your internet connection before any network access is allowed?
That's generally, at least from my limited experiences in that scenario, implemented through a custom-provided driver (or authentication application) from your ISP. I don't know that there is a Qt-based solution in that case (unless the ISP exposes an API for that kind of authentication from a 3rd party.)
Use "QProcess":http://doc.qt.nokia.com/latest/qprocess.html and the rasdial.exe windows command line utility.
rasdial.exe <connection name> <username> <password>
If you need a more sophisticated solution use the "Windows RAS API":http://goo.gl/6JspE.
Thank you for your help!