Connect to internet connection
-
wrote on 28 Jul 2011, 19:17 last edited by
Hellow, for example i have internet connection, how can i connect it, if i know login and password?
Advance many thanks for your help! -
wrote on 28 Jul 2011, 21:54 last edited by
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. :-)
-
wrote on 29 Jul 2011, 12:16 last edited by
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 -
wrote on 29 Jul 2011, 12:53 last edited by
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
-
wrote on 29 Jul 2011, 13:40 last edited by
As i understand QAuthenticator use when i was login in the some server, how can i login in system connection with QAuthenticator?
-
wrote on 29 Jul 2011, 13:51 last edited by
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?
-
wrote on 29 Jul 2011, 14:26 last edited by
bq. Are you using a system whose ISP requires you to authenticate your internet connection before any network access is allowed?
Yes
-
wrote on 29 Jul 2011, 14:32 last edited by
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.)
-
wrote on 29 Jul 2011, 16:42 last edited by
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. -
wrote on 29 Jul 2011, 18:18 last edited by
Thank you for your help!
-
wrote on 22 Feb 2024, 11:03 last edited byThis post is deleted!
-
wrote on 22 Feb 2024, 16:04 last edited by
You think @Ruzik is waiting here since 2011 for your reply?