Results 1 to 2 of 2

Thread: Create QNetworkRequest from QString(http headers)

  1. #1
    Join Date
    Dec 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Create QNetworkRequest from QString(http headers)

    Hello,
    I written a Http Server. I need to read QTcpSocket data and parse data to a QNetworkRequest and answer the client user. QTcpSocket data is http headers. an example of http headers illustrated below.
    GET http://www.google.com/ig HTTP/1.1
    Host: www.google.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip, deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Proxy-Connection: keep-alive
    Cookie: IGTP=LI=1:LM=1321707258; PREF=ID=e51a265f00c23224:U=463c892d2dbe1dde:FF=0:T M=1321613932:LM=1322602495:GM=1:S=E7gDiSpfUiT-7IGs; NID=53=pOh8Er4yw6xKzWEdEVL2vphY_SLUCpVO-vRa7u6hAKy7gYQAMUKr6hByskSuS7NIoPkfPmmBfyhRZtuTH-q2sThDToCCGtlPuno37FNP4G4Y8diwB5BziHajzb6QZsRQ; SID=DQAAALUAAADSpFJr43GjHJ-P99ZtOib3ajzytkuGm8jRjChRFms0uvNshQXL7kvTrPhBr3mko 6yd0Ol4gU5RBsnbYVH3E2qGbWcMZtKUwJ2usEFEv7yIIriZAh5 B2MK0ZQtGBbGtpyLIeE0BkGeHlWt9nMgj3dU7Zobv222Q9beay dsiLrA2Lxcx-gsSlXPk8NZJkXMt2dtrdFI7NkulXzIuAbRGOuI-7bWuoek3u2jgZQBKskbvjfo4U8Ef7-wm4Zi0qvU1HXA; HSID=AelyHnujpvMjDCppj; APISID=6QpfSNK4VLnEZ9KY/Ae3ZeZW5L2AxzYhKD; TZ=-210
    Cache-Control: max-age=0
    Kind Regards

  2. #2
    Join Date
    Dec 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Create QNetworkRequest from QString(http headers)

    can anyone help me, please?

Similar Threads

  1. QNetworkRequest Proxy
    By Ricardo_arg in forum Qt Programming
    Replies: 2
    Last Post: 12th April 2011, 18:50
  2. QNetworkRequest atribute
    By mero in forum Qt Programming
    Replies: 23
    Last Post: 12th March 2011, 23:02
  3. Replies: 1
    Last Post: 17th January 2011, 12:27
  4. With QString create a QString&
    By avis_phoenix in forum Newbie
    Replies: 1
    Last Post: 21st April 2010, 22:05
  5. QNetworkRequest file upload -- please help
    By Runtime Technologies in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2009, 15:55

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.