Results 1 to 2 of 2

Thread: Http post

  1. #1
    Join Date
    Mar 2010
    Posts
    15

    Default Http post

    Hi,

    I have a Wireshark log:
    POST /start.login HTTP/1.1\r\n
    [Expert Info (Chat/Sequence): POST /start.login HTTP/1.1\r\n]
    [Message: POST /start.login HTTP/1.1\r\n]
    [Severity level: Chat]
    [Group: Sequence]
    Request Method: POST
    Request URI: /start.login
    Request Version: HTTP/1.1
    Host: IP\r\n
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)\r\n
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
    Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Keep-Alive: 115\r\n
    Connection: keep-alive\r\n
    Referer: http://IP/hcti_start_passwort.htm\r\n
    Content-Type: application/x-www-form-urlencoded\r\n
    Content-Length: 11\r\n
    [Content length: 11]
    \r\n
    Line-based text data: application/x-www-form-urlencoded
    P1=PASSWORD
    Now I want to send this POST with a Qt Program. I think I have to start with:
    Qt Code:
    1. QHttp http;
    2. http.setHost("IPl");
    To copy to clipboard, switch view to plain text mode 

    But how I can create the request?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Http post


Similar Threads

  1. HTTP POST / Proxy Authentication issue
    By dekc99 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2011, 09:59
  2. How to upload file to HTTP server (POST Method)
    By Alex Snet in forum Qt Programming
    Replies: 8
    Last Post: 24th January 2011, 22:49
  3. Http Post method help
    By ravirdv in forum Qt Programming
    Replies: 0
    Last Post: 27th September 2009, 12:15
  4. http POST with form encoding
    By srikanth_trulyit in forum Qt Programming
    Replies: 1
    Last Post: 10th June 2009, 10:16
  5. How do I send data with http post request?
    By Morea in forum Qt Programming
    Replies: 13
    Last Post: 21st January 2009, 22: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.