Connect to internet connection
-
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
http://1.bp.blogspot.com/_KZiT-HoUKZ8/SRvBPsVlKEI/AAAAAAAAADQ/MgMguTeVQVw/s400/Connect.JPG
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
-
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?
-
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.