Need to connect to an https site

Hi all

I would like to be able to connect to an HTTPS site that returns json for me to use in an application I created. Now I used this example to help me on the logic of things: http://supportforums.blackberry.com/t5/Cascades-Development/Method-for-making-an-HTTP-style-request-...

The problem with this example is that it connects to a simple HTTP site and when I use it for my site it returns an error: SSL handshake failed.

Can someone help me understand what Miss me.

Thank you for the help

UPDATE:

OK, so here's what I added to my code based on the solution on this post: http://supportforums.blackberry.com/t5/Native-Development/Problem-with-HTTPS-on-Simulator/td-p/17754...

So, same code as TwitterApp Selom explain in the first link, then added after the req was made in the TwitterRequest.cpp in the getTimeline function

QString queryUri = "https://somesite/get?username=" + username
            + "&password=" + password;
    //qDebug() << queryUri;
    QUrl url(queryUri);
    QNetworkRequest req(url);

    QSslConfiguration config = req.sslConfiguration();
    config.setPeerVerifyMode(QSslSocket::VerifyNone);
    config.setProtocol(QSsl::TlsV1);
    req.setSslConfiguration(config);

    QNetworkReply* ipReply = netManager->get(req);
    connect(ipReply, SIGNAL(finished()), this, SLOT(onTimelineReply()));

So now, I don't get this error more but I have an empty listview... Is there anything other missing?

UPDATE 2:

OK, so I put a couple of qDebug here and there and I see that my answer is is filled with the json. Now, it does not show in my list. I will keep you updated.

I'm going to have a chance to look through this in detail today, so I'll give you a hint where I think the problem is to see if it unlocks to you.

I think that what I said before is OK, but not clear enough.

You get a QVariant.   This encapsulates a BLOB.   If it's a list, you can convert it to a list (if not, you will get an empty list).  If it's a card (a bunch of pairs name / value) then you can convert it to a card; If you attempt to convert a map and it is not a card, you get an empty map.

In your case, you get a group of pairs name / value.

Your original code, and then said: "that convert into list, but if it is not a list gives me an empty list.

The computer says "okey dokey.  I have a card, so here's your empty list. »

Is that more clear?   The issue is not with JSON.  It is with the information contained in these QVariants pulling.

Computer: "here's a thing.

You: "what kind of thing?  (there is a method to get the type that you can turn it on)

-or - "is this a card?   (there is a routine to check if it can be converted to a specific type)

Is that more clear?   Allow only JSON for the moment and look at the data you received.

Stuart

Tags: BlackBerry Developers

Similar Questions

  • SSLHandshakeException when connecting to an https site

    I'm SSLHandshakeException when connecting to an https site. The error message is

    javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    

    I turned on debugging to SSL recording, but I was not able to understand the root cause. It seems that the java client sends the ClientHello but does not receive the ServerHello message where the server chooses the most recent version of SSL and the best suite of encryption that both the client and the server support and sends this information to the customer. What is the cause? If so, how can I solve this?

    Newspapers are pasted here - Java SSLHandshakeException Logs - Pastebin.com

    Thank you!

    It seems that the question was because of java 8 client did not support the TLS_RSA_WITH_AES_256_CBC_SHA algorithm. Addition of the PVE pots has solved the problem.

    Answer detailed - java - SSLHandshakeException when connecting to an https site - Stack Overflow

  • cannot connect to an https site

    My wife's computer all of a sudden does not connect to a https, including mozilla links site!
    I tried to remove certs.db and some other fixes, I have found, but eventually everything wiped and reinstalled FF, but no joy.
    I searched all the programs she could have installed but can't keep anything.

    No problem with my computer.

    Okay, I went in ESET and unchecked "Add security to browsers known certificate", was released, ESET reinstated and rechecked the box and viola! It seems to work again.

    It's under Advanced setup/web & email/filtering/certificate Protocol
    for any future reference.

    Thanks again for your help.

  • After installing an update on Friday morning, I am unable to connect to the HTTP site

    I ran an update Thursday night and Friday morning that I was unable to connect to the internet. After a repair, it seems that I can connect to https and ftp sites, but I can't connect to non-secure http sites. I don't know if a setting has been changed or if there is another question. Thanks in advance for any help.

    original title: unable to connect to http sites

    I finished to restore on the eve of the update and everything works. I did it after trying the method 1 & 2 above. WinHTTP was not anywhere on the list of services and connections have been implemented according to the instructions. I hesitate to run updates until I know what caused the problem.
    The browser is IE.
    Here's the ID numbers updates which took place:
    KB2618451, KB2618444, KB2544893, KB2564958, KB2592799, KB2619339, KB2620712, KB2624667, KB2633171, KB2639417, KB2633952, KB2641690 AND KB890830.

  • Where is the lock? I can't see it anywhere on the screen when you are connected to the https site

    Until I downloaded the latest version of Firefox, it appeared with icons in the bottom right of the screen. With Internet Explorer8, it appears on the right side of the address bar.

    The lock has been replaced by the site identity button, for details on use, see https://support.mozilla.com/kb/Site+Identity+Button

    If you want to add a padlock icon in the address bar, you can use the add-on locks- https://addons.mozilla.org/firefox/addon/padlock-icon/

  • Cannot copy & paste and need to connect permanently to different sites

    I've upgraded from Vista to Windows 7, everything was fine until, after a few updates.  Now I can't copy & paste or same cntr C & cntr v or the computer crashes upward.  I connect permanently to facebook, ebay and Bank cometimes every 5 minutes!  Will you please help or I'll buy just a new conputer!

    Step 1: Run Internet Explorer Performance troubleshooting tool and check if the problem persists. See the article below mentioned the same thing.

    Open the Internet Explorer Performance Troubleshooting Utility

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Internet-Explorer-performance-Troubleshooter

    Step 2: Follow the steps in the following Article in the Knowledge Base and check if that helps.

    Internet Explorer not responding, stops working, or restarts
    http://support.Microsoft.com/gp/pc_ie_intro
     
    See also:

    Internet Explorer does not start or stops responding
    http://support.Microsoft.com/kb/926449 releasing It Easy: with Windows | ActiveWin | Laptops | Microsoft MVP

  • Need help, cannot connect to http sites, https only...

    BLUF: I can connect only to HTTPS Web sites, http gives me 'unable to connect to the server' or "no route to host" errors.

    While I was out of town, the woman finished downloading something on his MBP that cause a lot of pop-up ads any time during the use of the internet.  I ran Malwarebytes Anti-Malware and it found and removed a bunch of infected files.  All this while the computer was on OS X 10.9.x. Since that time, on any browser (firefox, safari, chrome) we can only connect to the https pages.  For example, http://www.google.com = no go "impossible to connect to the server...". ", while https://www.googlec.com = good, but unfortunately most of the links is http, so it is useless.

    I spent most of the last days 2 pouring on the forums, and troubleshooting to resolve this question... what I did:

    Reset my router (without success, all the remains connected to it is good (everything else is also Android/windows))

    Reset my modem (even had my ISP reset everything they could on their end too)

    Back to zero/reinstalled all browsers,

    erased the PRAM using the option + command + p + r at startup.

    verified that no Proxy box is checked in the advanced network settings

    tried to change the DNS, manual, auto, opendns, 8.8.8.8/8.8.4.4, using my ISP DNS googles, nothing changes.

    uninstalled all that was installed last week (not a lot, but now I don't know what it was).

    disabled the browser all extensions/plug-ins.

    IPv6 disabled/re-enabled (set to auto),

    What works:

    Safe mode, internet is full to the top.

    While in safe mode, I was able to connect to the app store (could not in a regular connection or guest user) and upgrade to OS X 10.11.5, but even the installation that does not solve all missing / corrupted files, I always have the same question.

    I thought for sure the new OS would have fixed it, but now I'm really stumped.

    Is there a way to reset completely all network settings? Could get blocked port 80 (http)? How can I tell?

    Any help would be appreciated,

    v/r

    Sean

    (a husband who knows enough about computers to really break, ha)

    First, never use any type of software "anti-virus" or "anti-malware" on a Mac. That's how cause you problems, not how you solve them.

    1. the present proceedings is a diagnostic test. It doesn't change anything for the better or worse and therefore, by itself, will not solve the problem. But with the help of the results of the tests, the solution may take a few minutes, instead of hours or days.

    The test works on OS X 10.8 ("Mountain Lion") and later versions. I do not recommend running it on older versions of Mac OS X. It will do no harm, but it will not do not much good.

    Do not be put off by the complexity of these instructions. The procedure is easy to do right, but it is also easy to do wrong, so I had very detailed instructions. You make the tasks more complicated with the computer all the time.

    2. If you do not already have a current backup, please back up all the data before doing anything else. The backup is needed on the general principle, not because of what anyone in the test procedure. Backup is always a must, and when you encounter any kind of problems with the computer, you can be more than the usual loss of data, if you follow these instructions or risk not.

    There are ways to back up a computer that is not fully functional. Ask if you need advice.

    3 here is instructions to run a UNIX shell script, a type of program. As I wrote above, it doesn't change anything. It does not send or receive data over the network. There is no to generate a report on the State of the computer human readable. This report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents for me or someone else.

    You should ask yourself if you can believe me, and if it is safe to run a program at the request of a foreign national. In general, no, he's not sure, and I encourage it.

    In this case, however, there are ways for you to decide if the program is safe without having to trust me. First of all, you can read it. Unlike an application that download you and click to start, it is transparent, anyone familiar with the code can check what it does.

    You may not be able to understand the script yourself. But variations of it have been posted on this site several times over a period of years. One of the million registered users to have read the script and set off the alarm if it was dangerous. Then I wouldn't be here now, and you would not be reading this message. See, e.g., this discussion.

    However, if you cannot satisfy yourself that these instructions are safe, do not follow them. Ask other solutions.

    4. here is a general summary of what you need to do, if you decide to go forward:

    ☞ Copy text from a particular web page (not this one) to the Clipboard.

    ☞ Paste into the window to another application.

    ☞ Wait for the test to run. It usually takes a few minutes.

    ☞ Stick the results, which will be copied automatically, in a response on this page.

    These are not specific instructions; just a glimpse. The details are in parts 7 and 8 of this comment. The sequence is: copy, paste, wait and paste it again. You don't need to copy a second time.

    5. try to test in conditions that replicate the problem, to the extent possible. For example, if the computer is slow intermittently, run the test during a downturn.

    You may have started up in safe mode. If the system is now in safe mode and works pretty well in normal mode to test run, restart as usual before running it. If you can test only in safe mode, this.

    6. If you have more than one user and a user is affected by the problem, and the user is not an administrator, and then run the test twice: once under the affected user and one administrator. The results can be different. The user that is created automatically on a new computer, when you start it for the first time is an administrator. If you are unable to log in as an administrator, verify that the user concerned. More personal Mac have only one user, and in this case this section does not apply. Don't log in as root.

    7 load the linked web page (the site "Pastebin") in Safari. Press the combination of keys command + A to select all the text, then copy it to the Clipboard by pressing command-C.

    8. start the Terminal application integrated in one of the following ways:

    ☞ Enter the first letters of his name ("Terminal") in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    Click anywhere in the Terminal window to activate it. Paste from the Clipboard into the window by pressing Command + V, then press return. The text that you pasted should disappear immediately.

    9. If you logged in as an administrator, you will be prompted for your login password. Nothing displayed when you type. You won't see the usual points instead of the characters typed. Make sure that caps lock is turned off. Type carefully, and then press return. You can get a warning to be careful. If you make three unsuccessful attempts to enter the password, the test is still running, but it will produce less information. If you do not know the password, or if you prefer not to enter, just press back three times at the password prompt. Yet once again, the script will run.

    If the test takes much longer that usual to run because the computer is very slow, you can be prompted for your password a second time. The permission you grant by entering it will expire automatically after five minutes.

    If you are not logged as an administrator, you will be prompted for a password. The test will run. It just will not do anything that requires administrator privileges.

    10. the test may take a few minutes to run, depending on the number of files you have and the speed of the computer. A computer that is abnormally slow may take more time to run the test. During execution, a series of lines is displayed in the Terminal window like this:

        Test started
            Part 1 of 4 done at: … sec        …        Part 4 of 4 done at: … sec
        The test results are on the Clipboard.
        Please close this window.

    The intervals between the parties will not be exactly the same, but they give an approximate indication of progress.

    Wait for the final message "Please close this window" appear - again, usually within a few minutes. If you don't see this message in about 30 minutes, the test probably won't be completed within a reasonable time. In this case, press the Ctrl + C key combination or the point command to stop it. Then go to the next step. You will have incomplete results, but still something.

    In order to get results, the test should be allowed to perform or be stopped manually as shown above. If you close the window of the Terminal, while the test is still running, the partial results will not be saved.

    11. when the test is completed, or if you manually stopped, leaving the Terminal. The results have been saved to the Clipboard automatically. They do not appear in the Terminal window. Please do not copy from there. All you have to do is start a response to this comment and then paste it again by pressing Command-V.

    At the top of the results, there will be a line that begins with the words «Start time.» If you do not see that, but rather to see a mass of gibberish, you wait for the message "close this window". Please wait and try again.

    If personal information, such as your name or e-mail address, appear in the results, make anonymous before posting. Usually it will be not necessary.

    12. in the validation of the results, you see an error message on the web page: "you have included content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the software which manages this website. Thanks for posting the results of the tests on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

    13. When you are finished with the test, it is gone. There is nothing to uninstall or clean.

    14. This is a public forum and others can give you advice based on the results of the test. They speak for themselves, not for me. The test itself is harmless, but all that you can not be. For others who choose to run it, I do not recommend that you view the results of test on this Web site unless I ask.

    15. the related UNIX shell script is a notice of copyright. ASC readers can copy for their personal use. The whole nor any part can be redistributed.

  • How can I disable the 'security warning' - encrpted script message when I connect to a Web site using the https protocol?

    Whenever I log onto a Web site over https (including my site), I get this message:

    Although this page is encrypted, the information you entered will be sent over an unencrypted connection and could easily be read by a third party.
    Are you sure you want to continue to send this information? It is followed below with two boxes, "continue" and "Cancel".

    To connect to the Web site, I have to click "continue" whenever I connect to the Web site.
    HOW to DISABLE this message permanently?

    Firefox gives this error because the page is over HTTPS, but your form action is HTTP:

    <form action="http://eclipse69forum.com/index.php?app=core&module=global&section=login&do=process" method="post" id="login">
    

    You can change cela https?

    Edit: disabled the link

  • Firefox and safari... can not establish a connection with the server of http sites

    Hi I have a mcbook pro loaded with OSX X Yosemite 10.10.3. For some time on safari and firefox I can access https sites only and get an error message "Unable to connect", then then specifically line "Firefox can't establish a connection to the server www.seek.co.nz.

    On the same network, I have an iMac OSX X Yosemite 10.10.5 running and can access http sites that my laptop will not. I compared the network settings and they are identical, I disabled the extension and erased the caches, but always without success. Any siggestions?

    Hello. Take a look at this article, maybe this will help you. OS X Yosemite: If you can't connect to the Internet

  • I have a problem of "Secure connection failed", access to an HTTPS site.

    I have a problem of "Secure connection failed", access to an HTTPS site. It is of this type:

    Your certificate contains the same serial number for another certificate issued by the certification authority. Please get a new certificate containing a unique serial number.

    (Error code: sec_error_reused_issuer_and_serial)

    OK, I have not read the support article carefully enough - it even says that this dialogue cannot be exceeded by adding an exception.
    you are most likely right that this problem arises because the same cert is used for different sites. this support article describes a work around, but it is probable, not applicable to your situation, since you would also have to remove the certification authority and which would create all sorts of problems as your production site will tend to choose an a valid CA certificate.

    Please contact your IT department or the problem of certificate on two different servers or to allow you to run a version of portable firefox where you can mess with the certificate store and the authorities of trust in order to access the test server.

  • Secure connection failed on all https sites?

    On all HTTPS sites, I get this message...

    The secure connection failed

    An error occurred during a connection to www.adobe.com. (or whatever site... lynda.com, bill pay sites, banks, etc...)
    

    The OCSP server has encountered an internal error.

    (Error code: sec_error_ocsp_server_error)

     The page you are trying to view can not be shown because the authenticity of the received data could not be verified.
     Please contact the web site owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.
    

    This happens since I updated from FF6 on all sites that use the protocol https for logging under... I contacted most of the sites and they say that's not them... they are all sites that I have seen in the past and regularly use... now since I updated to FF, they no longer work and I had to use another browser to access these sites... it's a royal pain!

    Thank you very much! Who has resolved, but is it safe to leave it off?

    Thanks again!

    Happy Thanksgiving!

  • Since the installation of the latest version of 4.0b12, I am unable to connect to any https through a proxy site. Connection works if no proxy is involved, with the proxy, I get a message like "proxy refuses the connection". Thank you for your answer

    I am connected to the network of the client and I should use a proxy.
    I successfully authenticate to the proxy and I try to access https://mail.google.com.
    I get a message that the proxy refuses the connection.
    I noticed that this happens with all https sites.
    If I connect with my mobile internet stick without proxy, I am able to connect: the combination of proxy and https is a failure.
    Other computers on the same network with different browsers can connect to https via the proxy.

    I work with the development of Firefox on this team. As far as I know, they seem to think that there are 2 or 3 different with the same symptoms or very similar problems, all involving proxies. They think that they have set their all for RC1.

    Right now, it seems that we just want to test an early version.

    You can get that here:

    http://ftp.mozilla.org/pub/mozilla.or.../Firefox-4.0b13pre.en-US.Win32.installer.exe

    Install this somewhere (not in your current installation directory), quit all instances of Firefox and try it. I would like to know if it works.

  • Why can I connect course websites (https), but sites (http) not ordinary?

    Why can I connect on websites (https) course, but when I try to connect a site (http) regular I get the message that the internet explore cannot display the Web page.

    I guess I have a bad setting somewhere, but can't understand what to change.

    Http and https use different ports.  Look at your firewall programs to determine if port 80 is blocked.  Temporarily disable the firewall programs, to see if this is the cause.

    Sometimes the following freeware program can resolve IP stack corruption as well.  Try to run WinSockXPFix if nothing else works:

    WinsockXPFix: <> http://www.snapfiles.com/get/winsockxpfix.html >

    HTH,
    JW

  • The place most frequent that I need to connect to a BT hotspot has a problem with the nearest hotspot. Although many sites come they are security protected.

    Access to the BT hotspots.

    The place most frequent that I need to connect to a BT hotspot has a problem with the nearest hotspot. Although many sites come they are protected from security and only the nearest BT hotspot is displayed. There are many others, but they are invisible. I think that there is a software that allows you to see several hot spots the. BT are unable to give me the details.

    This is probably a function of the driver for your wireless card.  I would check with the manufacturer of the computer or adapter.

    Good luck.

  • sites http does not yet connect will connect to https sites

    locations of https:// as for bank cards, mortgage company, etc. to connect as expected.  But, http:// sites get the message "Internet Explorer cannot display the webpage"

    I tried to reset all the IE / Tools / Internet Options settings but no change in the results.

    I ran Malwarebytes, Symantec, mechanic sign up but all without success.

    Thank you

    You may have missed something in your research to solve this problem, read the information below; or try THE Forum:

    See if the information below helps you solve the problem/s you have with Internet Explorer:

    http://support.Microsoft.com/default.aspx/KB/936213/?p=1

    "How to optimize Internet Explorer"

    Configuration in Windows Internet Explorer 7 and Windows Internet Explorer 8 settings can cause one or more of the following problems:

    ·    You experience performance issues in Internet Explorer.

    ·    You receive an error message in Internet Explorer. For example, you receive a message error "Internet Explorer cannot display the webpage".

    ·    Internet Explorer stops responding.

    This article describes how optimize or reset Internet Explorer in Windows Vista to solve these problems.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/kb/936215

    "How to solve the problems of Internet Explorer in Windows Vista and Windows XP"

    This article explains how to solve any problems that you may experience when you use Windows Internet Explorer 7 or Windows Internet Explorer 8 on a computer that is running Windows Vista.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/kb/936214/

    "How to solve compatibility problems that affect Internet Explorer 7 in Windows Vista"

    This article describes how to troubleshoot software compatibility affecting Windows Internet Explorer 7. To help determine which program may be the cause of the problem, you can do the following:

    1 use the mode safe mode with networking

    2. perform a clean boot

    3. use another user account

    4 scan your computer against viruses and spyware

    5. run Internet Explorer 7 in "no Add-ons" mode

    Hope the above helps.

    ·                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Also try the Forum from IE:

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/threads

    They will help you with your question IE in Forum Internet Explorer above.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for