Results 1 to 6 of 6

Thread: QHTTP POST problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    31
    Thanked 1 Time in 1 Post

    Default Re: QHTTP POST problem

    Well, the following solution is working:

    Qt Code:
    1. QString person="type=healthcase&recipient=test@test.com";
    2. QHttpRequestHeader header("POST", "/software/send.php");
    3. header.setValue("Content-Type", "application/x-www-form-urlencoded");
    4. header.setValue("Host", "dopcica.org");
    5. buffer = new QBuffer();
    6. http->request(header,person.toAscii(),buffer);
    To copy to clipboard, switch view to plain text mode 

    Regards,
    Oscar

  2. #2

    Default Re: QHTTP POST problem

    Look here: http://www.tuckdesign.com/products#formpost for complete solution that will allow you even to upload files to web forms.

  3. #3

    Default Re: QHTTP POST problem

    Moved here (and free now): http://www.tuckdesign.com/sources/Qt.

Similar Threads

  1. QHttp proxy problem
    By andre.rigon in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2008, 22:19
  2. problem in using QHttp
    By Ferdous in forum Newbie
    Replies: 4
    Last Post: 10th September 2008, 13:07
  3. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 13:48
  4. QHttp download file problem.
    By fengtian.we in forum Qt Programming
    Replies: 12
    Last Post: 12th June 2007, 10:39
  5. QHttp Problem
    By musaulker in forum Newbie
    Replies: 4
    Last Post: 29th March 2007, 01:40

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.