Results 1 to 2 of 2

Thread: protocol "" is unknown QNetworkReply

  1. #1
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4

    Default protocol "" is unknown QNetworkReply

    Hi,

    I have the following piece of code.
    Qt Code:
    1. QNetworkAccessManager *man = new QNetworkAccessManager(this);
    2.  
    3. QNetworkRequest getRequest;
    4. getRequest.setUrl((QUrl)requestUrl);
    5.  
    6. m_svcReply = man->get(getRequest);
    7. connect(m_svcReply, SIGNAL(finished()),this, SLOT(getWebRequestFinished()));
    8. connect(m_svcReply, SIGNAL(error(QNetworkReply::NetworkError)),this, SLOT(webrequestFailed(QNetworkReply::NetworkError)));
    To copy to clipboard, switch view to plain text mode 


    If I'm executing this request over WIFI, I get a proper response from the server.
    However if I'm executing this request over 3G, I get a protocol "" is unknown error.

    Any ideas why this might be happening?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: protocol "" is unknown QNetworkReply

    What is the content of requestUrl?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. "unknown editor" warning message from XP
    By fragolan in forum Installation and Deployment
    Replies: 2
    Last Post: 6th April 2010, 12:33
  2. Store several "QNetworkReply" in a QMap !
    By fitzy in forum Qt Programming
    Replies: 3
    Last Post: 29th November 2009, 12:50
  3. "unknown test function error" with MAc
    By tommy in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd August 2008, 19:25
  4. Replies: 3
    Last Post: 8th July 2008, 20:37
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.