Results 1 to 9 of 9

Thread: QHttp Header formation -reg

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QHttp Header formation -reg

    Yes i inherited QHttp Class. Actually i am checking the QHttpResponseHeader.

    Please look at below Response:

    reply Status Code = 400
    Reply Status Text = "HTTP/1.1 400 Bad Request
    Content-Type: text/html
    Date: Thu, 30 Apr 2009 07:15:21 GMT
    nnCoection: close
    Content-Length: 39

  2. #2
    Join Date
    Apr 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QHttp Header formation -reg

    Thanks for quick response.!

  3. #3
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QHttp Header formation -reg

    I believe that QHttp not supports HTTPS. Have you looked at QNetworkAccessManager.

  4. #4
    Join Date
    Apr 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QHttp Header formation -reg

    Thans ! but for http Requests also we are facing the same problem!

    Have a look at below code...
    QHttp *http = new QHttp();
    http->setHost("api.myspace.com");

    QHttpRequestHeader header("POST", "/request_token");

    header.setContentType("application/x-www-form-urlencoded");


    header.setValue("Host","http://api.myspace.com");

    header.setValue("Authorization:", authenticationHeader);

    http->request(header,reply);
    where authentication header will contain
    (QPair("Host","http://api.myspace.com") ,
    QPair("Authorization",
    "OAuth realm="http%3A%2F%2Fapi.myspace.com",
    oauth_nonce="Tm6Ebh5qps13PFPc",
    oauth_timestamp="1241075491",
    oauth_consumer_key="XXXX",
    oauth_signature_method="HMAC-SHA1",
    oauth_version="1.0",
    oauth_signature="XXX"") )

    same kind of output it is giving..
    reply Status Code = 400
    Reply Status Text = "HTTP/1.1 400 Bad Request
    Content-Type: text/html
    Date: Thu, 30 Apr 2009 07:15:21 GMT
    nnCoection: close
    Content-Length: 39

    what might be the problem? am i doing any thing wrong in url formation?

    Thanks in advance
    Regards,
    developer

Similar Threads

  1. How to edit Horizontal Header Item in QTableWidget
    By ioannis in forum Qt Programming
    Replies: 6
    Last Post: 5th March 2013, 18:50
  2. Howto : Header and Footers
    By pshah.mumbai in forum Qt Programming
    Replies: 0
    Last Post: 29th October 2008, 15:32
  3. How to customize horizontal header (diagonal header view)
    By vairamuthu.g in forum Qt Programming
    Replies: 4
    Last Post: 4th September 2008, 15:59
  4. From QHttp to QHttp over SSL
    By Nyphel in forum Newbie
    Replies: 1
    Last Post: 3rd July 2007, 10:41
  5. Replies: 0
    Last Post: 10th November 2006, 13:46

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
  •  
Qt is a trademark of The Qt Company.