×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    "Host not found" Error message with QHttp service

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: "Host not found" Error message with QHttp service

    did you remember to add the symbian capability NetworkServices that is required for the API usage in a device.

  3. #3
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: "Host not found" Error message with QHttp service

    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
    Join Date
    Mar 2010
    Posts
    49

    Re: "Host not found" Error message with QHttp service

    There is a bug in OpenC that may cause this. More info available at:

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

  5. #5
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: "Host not found" Error message with QHttp service

    And you should not be using QHttp as it's deprecated, you should use QNetworkAccessManager.

  6. #6
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    331

    Re: "Host not found" Error message with QHttp service

    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
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: "Host not found" Error message with QHttp service

    Please note that QNetworkAccessManager is affected by mentioned earlier OpenC bug in the same way as QHttp.

Similar Threads

  1. 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
  •  
×