Results 1 to 6 of 6

Thread: HTTP POST method

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: HTTP POST method

    Use a network sniffer and see what is different between your implementation and a web browsers.

  2. #2
    Join Date
    Jan 2009
    Posts
    51
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    28

    Default Re: HTTP POST method

    I captured packets sent by internet browser and my program by WinDump, and everything was the same, except some values from HTTP header.

    Now I used QNetworkAccessManager instead of QHttp and it works, but i don't know why :P

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: HTTP POST method

    So the data sent is exactly the same as before, as verified by WinDump?

  4. #4
    Join Date
    Jan 2009
    Posts
    51
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    28

    Default Re: HTTP POST method

    Data are the same, but header is quiet different (QNetworkAccessManager sends also information about User-Agent etc.).

  5. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: HTTP POST method

    Right, so you do know why. The header is different!

Similar Threads

  1. How to upload file to HTTP server (POST Method)
    By Alex Snet in forum Qt Programming
    Replies: 8
    Last Post: 24th January 2011, 23:49
  2. Http post
    By Max123 in forum Qt Programming
    Replies: 1
    Last Post: 30th May 2010, 14:43
  3. Http Post method help
    By ravirdv in forum Qt Programming
    Replies: 0
    Last Post: 27th September 2009, 13:15
  4. http POST with form encoding
    By srikanth_trulyit in forum Qt Programming
    Replies: 1
    Last Post: 10th June 2009, 11:16
  5. How do I send data with http post request?
    By Morea in forum Qt Programming
    Replies: 13
    Last Post: 21st January 2009, 23:51

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.