Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor RajeevSahu's Avatar
    Join Date
    Aug 2009
    Posts
    331
    Hi..

    I am doing an application, that fetches data from a website(Url) using QHttp service and stores data in a file in XML format.

    I am able to fetch data from the link and as such the .xml file is created in current directory...but only in case of Simulator. However when I tried it on my N97 device, I am getting an error like:

    Host not found
    Any guesses....

    Thanks....

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    did you remember to add the symbian capability NetworkServices that is required for the API usage in a device.

  3. #3
    Regular Contributor RajeevSahu's Avatar
    Join Date
    Aug 2009
    Posts
    331
    Thanks.. It's working...

    We have to use

    QT += core gui network xml
    and
    symbian {
    TARGET.UID3 = 0xe854433c
    TARGET.CAPABILITY += NetworkServices
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x020000 0x4000000
    }

    in .pro file to avoid this kind of error.

  4. #4
    Registered User Tuomo's Avatar
    Join Date
    Mar 2010
    Posts
    49
    There is a bug in OpenC that may cause this. More info available at:

    http://bugreports.qt.nokia.com/browse/QTBUG-8687

  5. #5
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    And you should not be using QHttp as it's deprecated, you should use QNetworkAccessManager.

  6. #6
    Regular Contributor RajeevSahu's Avatar
    Join Date
    Aug 2009
    Posts
    331
    Thanks divanov..

    I think, I should use QNetworkAccessManager, because yesterday my application was working fine with QHttp, but suddenly today it is again giving that Host not found error.

    Let me try with QNetworkAccessManager.

    By the way, any idea why this has happened, I have the same code with me!!!

  7. #7
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Please note that QNetworkAccessManager is affected by mentioned earlier OpenC bug in the same way as QHttp.

Similar Threads

  1. Replies: 2
    Last Post: 2008-12-22, 17:22
  2. Replies: 2
    Last Post: 2008-12-19, 14:46
  3. SIP/JSR180: Register Response lost as host throw ICMP message "Port Unreachable"
    By shiv_nitjai in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-10-20, 11:10

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