Results 1 to 2 of 2

Thread: http connectionId

  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default http connectionId

    Hello friends,

    I am trying to make an http connection, there is a situation which i couldn't understand:

    Qt Code:
    1. http.setHost(url.host());
    2. connectionId = http.get(url.path());
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. requestFinished(int, bool)
    To copy to clipboard, switch view to plain text mode 

    the value of connectionId returns "2", but the value of the "int" from requestFinished signal is "1". I cannot get the web page, shouldn't theese two values be equal? Is that the reason of the connection problem? And what is the problem

  2. #2
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: http connectionId

    Ok,
    they don't need be equal..

    Ive solved the connection problem by closing the Qt Creator and openning it again..

Similar Threads

  1. A simple HTTP server going wrong.
    By spraff in forum Qt Programming
    Replies: 1
    Last Post: 12th November 2008, 20:09
  2. uploading files to HTTP!!
    By Raajesh in forum Qt Programming
    Replies: 2
    Last Post: 24th June 2008, 22:00
  3. QT4 HTTP Example and Redirecting
    By jiveaxe in forum Qt Programming
    Replies: 3
    Last Post: 4th June 2008, 16:42
  4. Synchronous Http (Good reason)
    By umbrella in forum Qt Programming
    Replies: 5
    Last Post: 4th April 2008, 14:14
  5. http trouble again, segfaults when no internet
    By Bojan in forum Qt Programming
    Replies: 6
    Last Post: 18th January 2006, 20:25

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.