Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User aditya14's Avatar
    Join Date
    Feb 2009
    Posts
    2
    I am using the following code and it works fine if I select the connection type as Http and fails for https. Please suggest me any other steps to follow while using the https connection type.

    Actually I am trying to authenticate with google accounts server and I an not getting any response from the server.

    I checked for error message returned from the server in the requestfinished slot but the request seems to be succesful as there was no error returned.





    connect(http, SIGNAL(done(bool)), this, SLOT(readResponse()));
    connect(http, SIGNAL(requestFinished ( int id, bool error )), this, SLOT(requestFinished ( int id, bool error )));




    QHttpRequestHeader header("POST", "/accounts/ClientLogin");

    header.setContentType("application/x-www-form-urlencoded");

    header.setValue("Host","https://www.google.com");

    http->setProxy( "proxy.server.com", 8080,"username","password" );

    http->setHost("www.google.com",QHttp::ConnectionModeHttps); -->Code works fine if the connection type
    selected here is http



    http->setUser ( "username","password");

    http->request(header,readData);

  2. #2
    Registered User opartan's Avatar
    Join Date
    Oct 2007
    Posts
    7
    Hi

    I can't help you, but i'm interested how did you make internet access point connection. I'm trying to make connection to WLAN but I haven't succeed yet.

    Thanks

  3. #3
    Super Contributor jimgilmour1's Avatar
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600
    Hi,
    I cannot even get your code to work because the path you use is not correct for me. I think this needs to be "https://www.google.com/accounts/Login?continue=http://www.google.co.uk/&hl=en" but this only works for the U.K. thats because where I am registered, thats why IMHO you cannot log on secure. I cannot as I dont log onto google.com and ht

    When you log on google looks for a cookie in IE7 and I wonder what happens here. Also google use an Web API logon code.
    You may be better off trying a more simple site.
    https://www.google.com converts http://www.google.com
    Jim

  4. #4
    Registered User aditya14's Avatar
    Join Date
    Feb 2009
    Posts
    2
    Thanks for your reply. You cannot directly acccess the link https://www.google.com/accounts/ClientLogin by using browser. That is the link provided by google api's for the purpose of authentication from an application. In my case I found the problem and it was bcoz of proxy server present which was blocking the https call to server. My code is working fine if I use an internet without proxy in between.

  5. #5
    Nokia Developer Champion awoywood's Avatar
    Join Date
    Feb 2006
    Location
    Santiago, Chile
    Posts
    83
    Quote Originally Posted by aditya14 View Post
    Thanks for your reply. You cannot directly acccess the link https://www.google.com/accounts/ClientLogin by using browser. That is the link provided by google api's for the purpose of authentication from an application. In my case I found the problem and it was bcoz of proxy server present which was blocking the https call to server. My code is working fine if I use an internet without proxy in between.
    Hi, I was struggling for 2 days trying to understand why my java app didn't connect to a HTTPS server. After reading your post about the proxy, I saw the light! The phone came from the operator without the https proxy defined (it was a Sony C905). Thats why http worked and in my Nokia worked https and http.

    A BIG thanks for you!

Similar Threads

  1. Is it possible to accept (or reject) a BT connection request to device by a Program?
    By rzmadadi in forum Symbian Networking & Messaging (Closed)
    Replies: 12
    Last Post: 2008-12-15, 13:53
  2. how to know that network connection breaks during HTTP request
    By Ajmal in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2008-09-18, 11:40
  3. How to perform Https Connection ?
    By HidayathKhan in forum Symbian C++
    Replies: 6
    Last Post: 2007-11-15, 05:35
  4. http post request via socket connection
    By alliance205 in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-06-29, 11:25
  5. connection to serial port
    By marluzch in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-11-20, 19:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved